Skip to content

Repository version url is malformed #223

Description

@daviddavis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working (template-set)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions