Project

Profile

Help

Issue #3466

closed

publishing a repository version produces a 500 error

Added by dkliban@redhat.com almost 7 years ago. Updated about 5 years ago.

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

Description

The REST API returns a 500 error when trying to publish a specific repository version.

http POST $PUBLISHER_HREF'publish/' repository_version=$REPO_VERSION_HREF

Internal Server Error: /api/v3/publishers/file/e2b5db05-9f48-4b25-bf41-00e2a4a688a6/publish/
Traceback (most recent call last):
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rest_framework/viewsets.py", line 95, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rest_framework/views.py", line 494, in dispatch
    response = self.handle_exception(exc)
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rest_framework/views.py", line 454, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rest_framework/views.py", line 491, in dispatch
    response = handler(request, *args, **kwargs)
  File "/home/vagrant/devel/pulp_file/pulp_file/app/viewsets.py", line 95, in publish
    repository = self.get_resource(request.data['repository'], Repository)
  File "/home/vagrant/devel/pulp/pulpcore/pulpcore/app/viewsets/base.py", line 66, in get_resource
    pk = match.kwargs['pk']
KeyError: 'pk'
Actions #1

Updated by daviddavis almost 7 years ago

  • Sprint set to Sprint 34
Actions #2

Updated by dkliban@redhat.com almost 7 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com
Actions #3

Updated by daviddavis almost 7 years ago

  • Triaged changed from No to Yes

Added by dkliban@redhat.com almost 7 years ago

Revision 76b1224c | View on GitHub

Fixes publishing any repository version

closes #3466 https://pulp.plan.io/issues/3466

Added by dkliban@redhat.com almost 7 years ago

Revision 76b1224c | View on GitHub

Fixes publishing any repository version

closes #3466 https://pulp.plan.io/issues/3466

Actions #4

Updated by dkliban@redhat.com almost 7 years ago

  • Status changed from ASSIGNED to POST
Actions #5

Updated by dalley almost 7 years ago

  • Description updated (diff)
Actions #6

Updated by dkliban@redhat.com over 6 years ago

  • Status changed from POST to MODIFIED
Actions #7

Updated by dkliban@redhat.com over 6 years ago

  • Sprint/Milestone set to 3.0.0
Actions #8

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3, Pulp 3 MVP)
Actions #9

Updated by bmbouter about 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF