-
Notifications
You must be signed in to change notification settings - Fork 35
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
Bug: Session URL concatenates two url's into one bad one #78
Comments
It looks like GitLab returns a full session url that doesn't start with the prefix (the function assumes it either starts with the prefix or is a partial URL that needs it), so perhaps we should just check if it starts with |
@vsoch do you want something to check that it starts with that or do you want to check the protocol + hostname with something like urlparse (urllib) |
I’ll leave to your judgment! The latter sounds more robust but if it’s overkill the simple approach works as well. |
The following section of code incorrectly concatenates the URL into a bad session URL.
Example:
Result:
Because the registry has the port embedded in the URL the
session_url.startswith
concatenates it to the good session URL string.oras-py/oras/provider.py
Lines 496 to 499 in c817740
Expected actions:
Parse off the port from the URL when assigning the prefix to match.
The text was updated successfully, but these errors were encountered: