Skip to content

Repository API: latest_version_href doesn't have mirroring latest_version_prn #7008

@ianballou

Description

@ianballou

Version

python3.12-pulp-glue-0.32.3-1.el9.noarch
pulpcore-selinux-2.1.0-1.el9.x86_64
python3.12-pulp-cli-0.32.3-1.el9.noarch
rubygem-smart_proxy_pulp-3.4.0-1.fm3_13.el9.noarch
python3.12-pulpcore-3.85.1-1.el9.noarch
python3.12-pulp-ansible-0.28.0-1.el9.noarch
python3.12-pulp-container-2.26.1-1.el9.noarch
python3.12-pulp-deb-3.7.0-2.el9.noarch
python3.12-pulp-ostree-2.5.0-1.el9.noarch
python3.12-pulp-python-3.19.0-1.el9.noarch
python3.12-pulp-rpm-3.32.0-1.el9.noarch

Describe the bug

  {
    "pulp_href": "/pulp/api/v3/repositories/ansible/ansible/0199cac6-2012-700c-9177-3647cc17263e/",
    "prn": "prn:ansible.ansiblerepository:0199cac6-2012-700c-9177-3647cc17263e",
    "pulp_created": "2025-10-09T21:00:06.035204Z",
    "pulp_last_updated": "2025-10-09T21:00:06.039899Z",
    "versions_href": "/pulp/api/v3/repositories/ansible/ansible/0199cac6-2012-700c-9177-3647cc17263e/versions/",
    "pulp_labels": {},
    "latest_version_href": "/pulp/api/v3/repositories/ansible/ansible/0199cac6-2012-700c-9177-3647cc17263e/versions/0/",
    "name": "Default_Organization-Cabinet-pulp3_Ansible_collection_1",
    "description": null,
    "retain_repo_versions": null,
    "remote": null
  }

There is no latest_version_prn here.

To Reproduce
List/show repositories via the API

Expected behavior
latest_version_prn exists to fetch the latest version from the API, just like latest_version_href.

Additional context
Related to Katello's move to PRNs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions