Closed (fixed)
Project:
Stage File Proxy
Version:
8.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2014 at 11:52 UTC
Updated:
11 Sep 2019 at 11:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
nicoloye commentedComment #2
gregglesVery cool - thanks!
Should I commit this now so that there's a base for people to use for future work?
Comment #3
dixon_@greggles That would be lovely! :)
Comment #4
nicoloye commentedWith pleasure, thanks !
Comment #5
gregglesAwesome, thanks!
Committed at http://drupalcode.org/project/stage_file_proxy.git/commit/0250955 with credit to nicoloye and the event (not sure if you had help from others, but seems worth mentioning).
I created a release https://drupal.org/node/2206807 that will be published in a few hours and will then try to remember to add it the project page and update this issue to be "version 8.x-1.x-dev"
Comment #6
nicoloye commentedGreat !
Thanks for the event credit, it was indeed worth mentioning.
We've worked together with dixon on this port, great experience.
Comment #7
webflo commentedUpdates some docs and the use statements for Guzzle.
Comment #8
webflo commentedUpdate to prs4, wrote config schema, removed a few deprecated function calls and injected the logger.
The latest version is up on github. https://github.com/ueberbit/stage_file_proxy
Comment #9
webflo commentedComment #10
greggles@nicoloye, @dixon_ are either of you able to review the work in #8?
Comment #11
nicoloye commentedI tested the patch on a drupal 8 beta 9.
The module do enable properly but then I have this :
Fatal error: Call to undefined function Drupal\stage_file_proxy\EventSubscriber\request_path() in /var/www/actency/ddd/0.d8/modules/contrib/stage_file_proxy/src/EventSubscriber/ProxySubscriber.php on line 59The core has well changed since the first port was done. I'll try to check this in depth if I have some time in the following days.
Comment #12
nicoloye commentedOK so this is due to https://www.drupal.org/node/2382211.
I tried replacing the old calls by
Url::fromRoute('<current>')but it doesn't work. The router have already redirected on 404 at this point and all we catch issystem/404.I'm not sure how I can get the info properly. I'll search.
Comment #13
webflo commented@nicoloye i thought tis commit https://github.com/ueberbit/stage_file_proxy/commit/888c91bf68f91af4a30c... would fix the issue but it looks like its not sufficient. Maybe the weights have changed?
Would you please send me a pull request with your changes?
Comment #14
webflo commented@nicoloye Please test the linked repo. I should work in beta9. The patch in #8 is outdated.
Comment #15
nicoloye commentedWe have fixed the issue with a colleague.
There is still a little problem when you are not working in hotlink mode, we will post our patch as soon as it is OK.
Comment #16
nicoloye commentedAh, we also added the configuration form to the upcoming patch :)
Comment #17
nicoloye commentedHere is a new version of the patch done with @Nixou.
This patch complete your work @webflo. We have fixed the redirection problems with or without hotlink.
I have somes troubles with image styles locally so can't validate it works well with that but I think we have most of the work done here. :)
This patch also add the configuration form.
Comment #18
nicoloye commentedSorry, small problem of CRLF in the patch file. Fixed here.
Comment #19
webflo commented@nicoloye Could you provide a interdiff or pull request against my github repo? Thanks!
Comment #20
nicoloye commented@webflo, no problem.
We saw some other small problems here and there, we prepare a rerolled patch and an interdiff for you :)
Comment #21
renrhafHere is the new patch & interdiff.
Comment #22
renrhafSome errors are present in the patch, I'll upload a fixed one soon.
Comment #23
renrhafComment #24
renrhafThere was still a .info remaining that had to be deleted, sorry for patch flooding...
I added some documentation and injected the stack request.
Comment #25
danepowell commentedFrom what I can tell, there's already been one commit associated with this issue, and subsequently at least two paths of development (the patch in #17, which includes documentation updates, and the patch in #24, which does not.) Needless to say, this makes it really hard for a newcomer to determine the status of the codebase, much less try to contribute.
Given that we now have a 8.x-1.x release of the module, and people are already opening separate issues against it (#2559527: Exception: 'The service "stage_file_proxy.fetch_manager" has a dependency on a non-existent service "http_default_client".'), let's please close this issue to avoid further confusion.
Comment #26
nicoloye commentedHello Dane,
I'll review both patches to see what has to be kept but I think the last one was the good one, now to close the issue we need a maintainer to help reviewing the code and push it to the 8.x-1.0 branch.
Comment #27
webflo commentedRerolled the patches from #17 and #24 in one.
Committed everything to https://github.com/ueberbit/stage_file_proxy
Comment #28
webflo commentedSame patch as in #27 but with
git diff -M.Comment #29
nicoloye commentedAh nice, thanks webflo :)
Comment #30
danepowell commentedThanks, I've reviewed #28 and confirmed that it rolls up everything from #17-24 and matches ueberbit's downstream repo. Let's get that committed so we can continue development in dedicated issues.
Comment #32
gregglesOK then.
Thanks everyone for your work on this issue! As suggested by Dane Powell in #25, closing the issue so we can let other fixes happen in other issues.
Comment #33
webflo commentedThanks Greg!
Comment #34
webflo commented@greggles You forgot to add the new
srcfolder to your git commit.Comment #35
webflo commentedComment #39
gregglesThanks to webflo here and in irc for the assistance in making sure I got everything committed properly.
TIL: "git apply --index" is helpful.
Comment #41
avpaderno