Issue #3466
Updated by dalley over 6 years ago
The REST API returns a 500 error when trying to publish a specific repository version. <pre> http POST $PUBLISHER_HREF'publish/' repository_version=$REPO_VERSION_HREF repository=$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' </pre>