-
Notifications
You must be signed in to change notification settings - Fork 10
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
Inconsistent handling of HTTPS in package feed #252
Comments
This would appear to be the place you should start troubleshooting as it would appear you have issues on your network. Is there a proxy in play? Can you reproduce this on another computer inside your network? A computer outside of your network? That would be the first step. I'm also going to move this to the choco repository. |
Thanks @pauby, and thanks for the move - wasn't sure if this was considered an issue with the "site" as the issue I was raising was with the contents of the community feed, vs. how choco itself handles the feed - technically asking choco to force everything to secure wouldn't be ideal as I'm sure some people with internal feeds might be happy with HTTP requests rather than applying a certificate to the service. I guess however, as Yep, the issue does seem to be somewhere with my ISP - I get the same behaviour through my mobile network as my broadband, but they're both through the same provider (Vodafone UK), which makes me think that's where the issue fundamentally lies, and connecting through my work VPN seems to work as expected. However, I still think a better idea would be for the feed to be updated with the correct/preferred scheme. |
Good to know. Looks like it was something within either Vodafone's SecureNet controls or "Adult Content Restrictions", disabling those and everything works now... |
@Zhaph Thanks for confirming that. Now that the Chocolatey CLI issue is resolved, I've spoken to the team and the issue with the Chocolatey Community Repository is something that should be investigated. I've going to reopen this and move it back to where you opened it originally(as that repository covers that repository). |
Cheers @pauby, makes sense. Seeing as the server is issuing a 307 redirect to the HTTPS version anyway, it's probably for the best that the feed is using HTTPS internally at least. |
Checklist
What You Are Seeing?
Some part of my network appears to be blocking or dropping requests on port 80, such that any requests to
http
will timeout and not return a response.The initial request from choco to the Community feed (
https://community.chocolatey.org/api/v2/
) is made over HTTPS, which succeeds, however all subsequent requests, based on the internal links of the feed are made over HTTP:For example, when looking for the latest dependency of the notepadplusplus package, the following requests are made:
Looking at the feed returned, the key parts are the base property, and the next/previous links, e.g.
<link rel="next" href="http://community.chocolatey.org/api/v2/FindPackagesById?id='notepadplusplus.install'&$skiptoken='notepadplusplus.install','6.7.2'" />
which is directing the client to the http version of the feed.
This means I'm unable to upgrade packages with dependencies (or have to just upgrade the dependencies directly).
What is Expected?
The community feed responds on HTTPS, and directs clients to continue using HTTPS.
How Did You Get This To Happen?
Start Fiddler (or other traffic sniffer/proxy/etc.).
choco upgrade notepadplusplus
Confirm in fiddler that the requests to the community feed are switching back to HTTP.
System Details
Installed Packages
Output Log
Additional Context
No response
┆Issue is synchronized with this Gitlab issue by Unito
The text was updated successfully, but these errors were encountered: