Actions
Issue #5516
closedplugin managed repositories not found
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 60
Quarter:
Description
When trying to get a plugin managed repository or its versions:
(pulp) [vagrant@pulp3-source-fedora30 pulp_rpm]$ http http://localhost:24817/pulp/api/v3/repositories/be8dd773-9215-4430-908f-70b642a36b17/
HTTP/1.1 404 Not Found
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Connection: close
Content-Length: 23
Content-Type: application/json
Date: Mon, 30 Sep 2019 20:13:42 GMT
Server: gunicorn/19.9.0
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN
{
"detail": "Not found."
}
(pulp) [vagrant@pulp3-source-fedora30 pulp_rpm]$ http http://localhost:24817/pulp/api/v3/repositories/be8dd773-9215-4430-908f-70b642a36b17/versions/1/
HTTP/1.1 404 Not Found
Allow: GET, DELETE, HEAD, OPTIONS
Connection: close
Content-Length: 23
Content-Type: application/json
Date: Mon, 30 Sep 2019 20:10:41 GMT
Server: gunicorn/19.9.0
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN
{
"detail": "Not found."
}
But the repository exists:
Python 3.7.3 (default, Mar 27 2019, 13:36:35)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.8.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: RepositoryVersion
Out[1]: pulpcore.app.models.repository.RepositoryVersion
In [2]: RepositoryVersion.objects.all()
Out[2]: <QuerySet [<Repository: cbab8000-4ebf-465c-8498-4c0c0bcb761e; Version: 1>, <Repository: ../../../AppStream/x86_64/kickstart/-196467645ecee245f5a523e68f42e14b38140ba5e76d6a1bf912f35aa
4f4face; Version: 1>]>
In [3]: RepositoryVersion.objects.all()[1].pk
Out[3]: UUID('a2d61439-5251-4fdf-a778-b0d3dd3a065a')
In [4]: RepositoryVersion.objects.all()[1].repository.pk
Out[4]: UUID('be8dd773-9215-4430-908f-70b642a36b17')
Actions
removing plugin_managed repository filter
closes #5516 https://pulp.plan.io/issues/5516