Issue #9534
closedAnsible Galaxy Repo failed to synchronize case-sensitive role name
Description
Ticket moved to GitHub: "pulp/pulp_ansible/747":https://github.com/pulp/pulp_ansible/issues/747
The galaxy.ansible.com API uses case-insensitive fields for the owner username and role name. The Ansible Galaxy Hub source code: https://github.com/ansible/galaxy/blob/e0e4b909171ddc6ca40f0ef2f7d4dce5680777ce/galaxy/api/views/roles.py#L50
But pulp usesnamespace=namespace. It causes the error on case-sensitive repositories (404 not found, or empty set). An example:
- https://galaxy.ansible.com/api/v1/roles/?owner__username=Oefenweb
- https://galaxy.ansible.com/api/v1/roles/?owner__username=oefenweb
Galaxy Ansible returns the same result. But pulp isn't.
So we can't install roles like this using regular ansible-galaxy install oefenweb.postfix
command with the Pulp repo.
Updated by stosem over 2 years ago
Pull request: https://github.com/pulp/pulp_ansible/pull/670/
Updated by mdellweg over 2 years ago
This sounds like we would need appropriate uniqueness constraints in the database to prevent both "tEst" and "TeSt" to exist as namespaces.
Updated by pulpbot over 2 years ago
- Description updated (diff)
- Status changed from NEW to CLOSED - DUPLICATE