Project

Profile

Help

Issue #3466

publishing a repository version produces a 500 error

Added by dkliban@redhat.com over 1 year ago. Updated 6 months ago.

Status:
MODIFIED
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 34

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'

Associated revisions

Revision 76b1224c View on GitHub
Added by dkliban@redhat.com over 1 year ago

Fixes publishing any repository version

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

Revision 76b1224c View on GitHub
Added by dkliban@redhat.com over 1 year ago

Fixes publishing any repository version

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

Revision 76b1224c View on GitHub
Added by dkliban@redhat.com over 1 year ago

Fixes publishing any repository version

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

History

#1 Updated by daviddavis over 1 year ago

  • Sprint set to Sprint 34

#2 Updated by dkliban@redhat.com over 1 year ago

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

#3 Updated by daviddavis over 1 year ago

  • Triaged changed from No to Yes

#4 Updated by dkliban@redhat.com over 1 year ago

  • Status changed from ASSIGNED to POST

#5 Updated by dalley over 1 year ago

  • Description updated (diff)

#6 Updated by dkliban@redhat.com over 1 year ago

  • Status changed from POST to MODIFIED

#7 Updated by dkliban@redhat.com over 1 year ago

  • Sprint/Milestone set to 3.0

#8 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3, Pulp 3 MVP)

Please register to edit this issue

Also available in: Atom PDF