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

Fix url parsing for collections with a name of "collections" #1376

Merged
merged 1 commit into from
Mar 4, 2023

Conversation

jctanner
Copy link
Contributor

@jctanner jctanner commented Feb 24, 2023

https://issues.redhat.com/browse/AAH-2158
#1388

An alternative fix is to change

path("content/<path:distro_base_path>/collections/", include(v3_collection_urls))

to

path("content/<str:distro_base_path>/collections/", include(v3_collection_urls))

However, that will not allow for base paths containing "/"'s

@jctanner jctanner changed the title Add test for oracleansible.collections Fix url parsing for collections with a name of "collections" Feb 24, 2023
pulp_ansible/app/urls.py Outdated Show resolved Hide resolved
pulp_ansible/app/urls.py Outdated Show resolved Hide resolved
@jctanner
Copy link
Contributor Author

@mdellweg I think the latest commit fixes it in a cleaner way. By being more specific about the route the detail urls are included on top of, the path logic seems to work better.

Copy link
Member

@mdellweg mdellweg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for refining the tests. This is so much easier to review now.

Copy link
Member

@mdellweg mdellweg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait a second. There's an issue and a changelog missing.

fixes: pulp#1388

Signed-off-by: James Tanner <tanner.jc@gmail.com>
@mdellweg mdellweg merged commit 587382d into pulp:main Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants