Project

Profile

Help

Issue #8475

closed

Published distributions are not viewable at base url of content app

Added by gerrod about 3 years ago. Updated over 2 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
Actions #1

Updated by gerrod about 3 years ago

  • Subject changed from AnsibleDistributions break viewing other Pulp distributions in the content app to Published distributions are not viewable at base url of content app
  • Assignee set to gerrod

After some testing I found that you can't see any distribution at /pulp/content/.

Actions #2

Updated by bmbouter about 3 years ago

  • Project changed from Ansible Plugin to Pulp
Actions #3

Updated by pulpbot about 3 years ago

  • Status changed from NEW to POST

Added by gerrod about 3 years ago

Revision 6ebab80f | View on GitHub

Fixed distributions not being viewable in content app

fixes: #8475 https://pulp.plan.io/issues/8475

Actions #4

Updated by gerrod about 3 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by mdellweg about 3 years ago

  • Sprint/Milestone set to 3.12.0
Actions #6

Updated by ggainey about 3 years ago

  • Related to Issue #8518: Can't browse rpm repo listing added
Actions #7

Updated by pulpbot about 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF