Project

Profile

Help

Issue #8843

closed

Export list fails with 500 when a repository is deleted

Added by mdellweg almost 3 years ago. Updated over 2 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
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 104
Quarter:

Description

Steps to reproduce:

  1. create a repository
  2. create an exporter with that repository
  3. export with the exporter
  4. delete the repository
  5. list the exports of the exporter

Relevant part of the stack trace:

   File "/home/vagrant/devel/pulpcore/pulpcore/app/serializers/exporter.py", line 73, in to_representation
     viewset = get_viewset_for_model(exported_resource.content_object)
   File "/home/vagrant/devel/pulpcore/pulpcore/app/util.py", line 23, in get_viewset_for_model
     model_class = model_obj._meta.model
 AttributeError: 'NoneType' object has no attribute '_meta'

Also available in: Atom PDF