-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(install): Follow HTTP redirections when downloading a file #3902
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Rebase to develop
- Use proper casing for methods, properties
In some cases, such as when an HTTPS URL redirects to an HTTP URL, the `HTTPWebRequest` client may not follow 302 error codes. This change explicitly catches that error, and attempts to find another URL for the same file in the body of the 302 response. This specifically fixes the error when installing or updating Krita (from the extras bucket), which has an HTTPS download URL that can redirect to HTTP mirrors.
Co-Authored-By: Jakub Čábera <cabera.jakub@gmail.com>
Thanks for the reviews! I cleaned the history a bit, let me know if you'd like me to squash one last time once this is finished. As far as testing goes, in addition to Krita, I've tried this change with |
Basically any of the apache applications are affected by this. I will look for some other. |
@Ash258 Once in master, we could revert the download urls for all the Eclipse manifests in extras that were changed in commit ScoopInstaller/Extras@2ec0e54 This will provide the Eclipse project with better statistics, and scoop users with better download speeds. |
@se35710 Sure. I will then handle it for extras as there will be much more manifests, which could benefit from this. I also need to look for all opened issues across all repositories to close then in bulk. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works great for my 301/307 cases.
So this is ready to merge I think. @r15ch13 |
@Ash258 Thanks for finding the related issue. If this has been merged, why am I still seeing the issue? |
You have to change the branch of scoop to |
@jat001 Where? Do I reinstall scoop directly to shift to develop branch? Is there a Wiki page I can read or a contributing.md that I'm missing? |
well, you are not familiar with git, right? open in terminal |
Very familiar with git. Just wasn't sure the approach to being able to contribute. Thanks. |
You can just use |
That's awesome. Is there a way to specify a branch for testing of the buckets? (if there is somewhere more appropriate for this conversation say a discord or mailing list let me know) I was digging into trying to improve some of the other deploys and didn't see any way to do that. The way I think is to fork the bucket and then test directly in the forked versions master branch. |
What do you want to test? Scoop core or some manifests? You can open another issue or join https://discord.gg/s9yRQHt 😄 |
Any timeline anyone for an upcoming / planed merge? |
In some cases, such as when an HTTPS URL redirects to an HTTP URL, the
HTTPWebRequest
client may not follow 302 error codes. This change explicitly catches that error, and attempts to find another URL for the same file in the body of the 302 response.This specifically fixes the error when installing or updating Krita (from the extras bucket), which has an HTTPS download URL that can redirect to HTTP mirrors.
Closes #3886
Closes #3535
Closes ScoopInstaller/Extras#2728
Closes ScoopInstaller/Extras#2932
Replaces ScoopInstaller/Extras#2933