-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Pip install from internal pypi server containing git links fails with pypi 19.1 #6437
Comments
This looks to be related to this issue: #6245 It looks like @nicolasbock Do you have time to take a look? |
I did some debug and end up this location: This is the place where @ is changed to %40. It might be that this part should be parsed before here? |
|
Alternatively, the URL should be unquoted prior to parsing. (I haven't really looked at the code yet, so I'm just suggesting possibilities.) |
@cjerdonek I tried this
and it fixes the problem. |
We are hitting this as well. In our case the private pypi is backed by AWS s3 and uses pre-signed s3 URLs as download links. for pip < 19.1 this works for us while for 19.1 we get 403. We can I don't believe our URLs are quoted upon return from our private pypi service that successfully allows |
@cjerdonek Maybe something like #6440 ? |
It seems more related to ERROR: HTTP error 403 while getting FAILING_URL ( from VALID_URL ) Where the difference is that our URLs are of the form and in the error message it looks as if Update: |
Do you mean to say that the token has a quoted |
Yes. I believe that's what we're observing. |
@cwharland Could you create a separate issue? It sounds like it is also caused by #6245 but it's different than the issue with |
Remote URLs that contain a link to a git repository and a tag reference will have the `@` character converted into `%40`. This is incorrect. Fixes: pypa#6437 Signed-off-by: Nicolas Bock <[email protected]>
@nicolasbock Thanks again for your quick help with this! 👍 Can you also create a new issue for the slash issue mentioned above, and do you have time to create a PR for that as well? Feel free to let me know if you need advice on the right approach. |
No problem @cjerdonek ! I created #6446 . |
Thank you for really quick fix! |
Do you think there will be soon a bug-fix release with this fix? |
Yes, I think so. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Environment
Description
We have pypi server that contains links to git:
git+ssh://<url>[email protected]#egg=<package>-0.1.0.201810251140
pip install <package>
fails withExpected behavior
pip install <package>
has been working and does work if I installpip<19.1
How to Reproduce
To reproduce this one needs local pypi server.
Add
git+ssh://<url>[email protected]#egg=<package>-0.1.0.201810251140
style link to pypi server where that version number is a git tag.Then:
Output:
Running same with
pip<19.1
outputsIt looks like the problem is that
%400.1.0.201810251140
left in the git link.The text was updated successfully, but these errors were encountered: