Project

Profile

Help

Issue #7522

closed

Hitting the filesystem export url raises an exception

Added by daviddavis about 4 years ago. Updated about 4 years ago.

Status:
CLOSED - CURRENTRELEASE
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:
Sprint 81
Quarter:

Description

Try to hit an exports url endpoint:

http :/pulp/api/v3/exporters/file/filesystem/bf13b90e-8d67-481c-8182-81c34120ec94/exports/

It will raise this error:

Traceback (most recent call last):
  File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/viewsets.py", line 114, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/views.py", line 505, in dispatch
    response = self.handle_exception(exc)
  File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/views.py", line 465, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
    raise exc
  File "/usr/local/lib/pulp/lib64/python3.7/site-packages/rest_framework/views.py", line 493, in dispatch
    self.initial(request, *args, **kwargs)
  File "/home/vagrant/devel/pulpcore/pulpcore/app/viewsets/base.py", line 267, in initial
    self.get_parent_field_and_object()
  File "/home/vagrant/devel/pulpcore/pulpcore/app/viewsets/base.py", line 327, in get_parent_field_and_object
    filters[parent_lookup] = self.kwargs[key]
KeyError: 'filesystem_exporter_pk'
Actions #1

Updated by bmbouter about 4 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 81
Actions #2

Updated by daviddavis about 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis
Actions #3

Updated by pulpbot about 4 years ago

  • Status changed from ASSIGNED to POST

Added by daviddavis about 4 years ago

Revision dbfef9ed | View on GitHub

Fixed exception when hitting file system exports path

fixes #7522

Actions #4

Updated by daviddavis about 4 years ago

  • Status changed from POST to MODIFIED

Added by daviddavis about 4 years ago

Revision 6cabca6f | View on GitHub

Fixed exception when hitting file system exports path

fixes #7522

(cherry picked from commit dbfef9ed1cf1c244ffccbb3fe577ab367805d9be)

Actions #6

Updated by bmbouter about 4 years ago

  • Sprint/Milestone set to 1.3.0
Actions #7

Updated by bmbouter about 4 years ago

  • Sprint/Milestone deleted (1.3.0)
Actions #8

Updated by bmbouter about 4 years ago

  • Sprint/Milestone set to 1.3.0
Actions #9

Updated by pulpbot about 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF