Project

Profile

Help

Issue #8475

closed

Published distributions are not viewable at base url of content app

Added by gerrod over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

If you go to the base url of the content app /pulp/content/ to view all the published distributions when an AnsibleDistribution has been published you get a 500 error

Mar 30 15:15:23 pulp3-source-fedora33.localhost.example.com gunicorn[234021]: [2021-03-30 15:15:23 +0000] [234021] [ERROR] Error handling request
Mar 30 15:15:23 pulp3-source-fedora33.localhost.example.com gunicorn[234021]: Traceback (most recent call last):
Mar 30 15:15:23 pulp3-source-fedora33.localhost.example.com gunicorn[234021]:   File "/usr/local/lib/pulp/lib64/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
Mar 30 15:15:23 pulp3-source-fedora33.localhost.example.com gunicorn[234021]:     resp = await self._request_handler(request)
Mar 30 15:15:23 pulp3-source-fedora33.localhost.example.com gunicorn[234021]:   File "/usr/local/lib/pulp/lib64/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle
Mar 30 15:15:23 pulp3-source-fedora33.localhost.example.com gunicorn[234021]:     resp = await handler(request)
Mar 30 15:15:23 pulp3-source-fedora33.localhost.example.com gunicorn[234021]:   File "/home/vagrant/devel/pulpcore/pulpcore/content/handler.py", line 121, in list_distributions
Mar 30 15:15:23 pulp3-source-fedora33.localhost.example.com gunicorn[234021]:     directory_list = ["{}/".format(d.base_path) for d in base_paths]
Mar 30 15:15:23 pulp3-source-fedora33.localhost.example.com gunicorn[234021]:   File "/home/vagrant/devel/pulpcore/pulpcore/content/handler.py", line 121, in <listcomp>
Mar 30 15:15:23 pulp3-source-fedora33.localhost.example.com gunicorn[234021]:     directory_list = ["{}/".format(d.base_path) for d in base_paths]
Mar 30 15:15:23 pulp3-source-fedora33.localhost.example.com gunicorn[234021]: AttributeError: 'str' object has no attribute 'base_path'


Related issues

Related to Pulp - Issue #8518: Can't browse rpm repo listingCLOSED - DUPLICATEActions

Also available in: Atom PDF