-
-
Notifications
You must be signed in to change notification settings - Fork 235
Add a protocol to relative urls in FileHandler fixes #4918 #4957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
@octfx Thanks for providing this patch and please excuse that is has been rotting here since. @JeroenDeDauw Could you have a peep at this? |
I'm afraid to merge this without tests |
I'll try to add some when my time permits it! |
I do not think this would work for two reasons:
I believe just removing lines 136 to 145 (the |
Oh, the I've updated the try-catch block to add the canonical server protocol to the input url. Further I've added some tests, but I couldn't get them to run locally as it always errored out with |
- Add FileIndexerTest
@Seb35 does this look good to you? |
@JeroenDeDauw Could you take a look at this again when you have the time? We are facing this issue again. |
@marijnvanwezel did you test that this patch fixes the issue? |
This PR is made in Reference to #4918
Tries to add a protocol to a relative url, by checking
wgCanonicalServer
or the request throughRequestContext::getMain
. If both failhttp
is used as a fallback.