Project

Profile

Help

Issue #3610

closed

500 when publishing a repository without any versions

Added by daviddavis almost 6 years ago. Updated over 2 years ago.

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

Description

Ticket moved to GitHub: "pulp/pulp_ansible/679":https://github.com/pulp/pulp_ansible/issues/679


Copied from pulp_file. Was able to reproduce this with an ansible publisher.

~/3/pulp_ansible ❯ http POST http://dev.pulp3:8000/api/v3/publishers/ansible/007682b4-f522-469b-92c9-baeca276529a/publish/ repository=http://dev.pulp3:8000/api/v3/repositories/96a7048f-bda6-4ccc-8317-a8dca80defae/
HTTP/1.0 500 Internal Server Error

Traceback:  

File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
  249.             response = self._get_response(request)

File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  58.         return view_func(*args, **kwargs)

File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rest_framework/viewsets.py" in view
  95.             return self.dispatch(request, *args, **kwargs)

File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rest_framework/views.py" in dispatch
  494.             response = self.handle_exception(exc)

File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rest_framework/views.py" in handle_exception
  454.             self.raise_uncaught_exception(exc)

File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rest_framework/views.py" in dispatch
  491.             response = handler(request, *args, **kwargs)

File "/home/vagrant/devel/pulp_file/pulp_file/app/viewsets.py" in publish
  147.             [repository_version.repository, publisher],

Exception Type: AttributeError at /api/v3/publishers/file/007682b4-f522-469b-92c9-baeca276529a/publish/
Exception Value: 'NoneType' object has no attribute 'repository'

Related issues

Blocked by Pulp - Story #3617: As a plugin writer, I can use or subclass core-provided sync and publish serializersCLOSED - CURRENTRELEASEamacdona@redhat.com

Actions
Copied from File Support - Issue #3583: 500 when publishing a repository without any versionsCLOSED - CURRENTRELEASEdalleyActions
Actions #1

Updated by daviddavis almost 6 years ago

  • Copied from Issue #3583: 500 when publishing a repository without any versions added
Actions #2

Updated by daviddavis almost 6 years ago

  • Description updated (diff)
Actions #3

Updated by daviddavis almost 6 years ago

  • Status changed from MODIFIED to NEW
  • Assignee deleted (dalley)
  • Triaged changed from Yes to No
  • Sprint deleted (Sprint 36)
  • Tags deleted (Pulp 3 MVP)

Resetting values after copy.

Actions #4

Updated by daviddavis almost 6 years ago

  • Blocked by Story #3617: As a plugin writer, I can use or subclass core-provided sync and publish serializers added
Actions #5

Updated by dalley almost 6 years ago

The fix for this same issue from the file plugin can essentially just be copied over.

https://github.com/pulp/pulp_file/pull/85

Or move it to core and make the associated changes to the plugins.

Actions #6

Updated by daviddavis almost 6 years ago

  • Triaged changed from No to Yes
Actions #7

Updated by amacdona@redhat.com almost 6 years ago

https://github.com/pulp/pulp/pull/3524 adds the serializers to core, so if Ansible is updated to use them, it will fix this issue.

Actions #8

Updated by daviddavis almost 6 years ago

Excellent, thanks @asmacdo.

Actions #9

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #10

Updated by pulpbot over 2 years ago

  • Description updated (diff)
  • Status changed from NEW to CLOSED - DUPLICATE

Also available in: Atom PDF