Skip to content
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

Repository version url is malformed #223

Closed
daviddavis opened this issue May 5, 2021 · 0 comments · Fixed by #224
Closed

Repository version url is malformed #223

daviddavis opened this issue May 5, 2021 · 0 comments · Fixed by #224
Labels
bug Something isn't working (template-set)
Milestone

Comments

@daviddavis
Copy link
Contributor

daviddavis commented May 5, 2021

Run these commands:

pulp file repository create --name cli_test_file_repository
pulp file repository version show --repository cli_test_file_repository --version 0

You'll see for the repository version show command, there are 3 requests to the server:

[05/May/2021 13:59:38] "GET /pulp/api/v3/repositories/file/file/?name=cli_test_file_repository&offset=0&limit=1 HTTP/1.0" 200 552
[05/May/2021 13:59:38] "GET /pulp/api/v3/repositories/file/file/346223ec-10f3-414c-b9e6-e0bd777a7402/versions/0 HTTP/1.0" 301 0
[05/May/2021 13:59:39] "GET /pulp/api/v3/repositories/file/file/346223ec-10f3-414c-b9e6-e0bd777a7402/versions/0/ HTTP/1.0" 200 322

The first and third I expect. The second one I do not. Looks like the CLI is forming the href without the slash at the end.

daviddavis pushed a commit to daviddavis/pulp-cli that referenced this issue May 5, 2021
@daviddavis daviddavis added the bug Something isn't working (template-set) label May 5, 2021
@mdellweg mdellweg added this to the 0.9.0 milestone May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working (template-set)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants