Project

Profile

Help

Issue #7522

Hitting the filesystem export url raises an exception

Added by daviddavis about 1 month ago. Updated 29 days 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'

Associated revisions

Revision dbfef9ed View on GitHub
Added by daviddavis about 1 month ago

Fixed exception when hitting file system exports path

fixes #7522

Revision 6cabca6f View on GitHub
Added by daviddavis 29 days ago

Fixed exception when hitting file system exports path

fixes #7522

(cherry picked from commit dbfef9ed1cf1c244ffccbb3fe577ab367805d9be)

History

#1 Updated by bmbouter about 1 month ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 81

#2 Updated by daviddavis about 1 month ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis

#3 Updated by pulpbot about 1 month ago

  • Status changed from ASSIGNED to POST

#4 Updated by daviddavis about 1 month ago

  • Status changed from POST to MODIFIED

#6 Updated by bmbouter 29 days ago

  • Sprint/Milestone set to 1.3.0

#7 Updated by bmbouter 29 days ago

  • Sprint/Milestone deleted (1.3.0)

#8 Updated by bmbouter 29 days ago

  • Sprint/Milestone set to 1.3.0

#9 Updated by pulpbot 29 days ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF