Project

Profile

Help

Issue #3610

Updated by daviddavis over 6 years ago

Copied from pulp_file. Was able to reproduce this with an ansible publisher. 

 <pre> 
 ~/3/pulp_ansible ~/3/pulp_file ❯ http POST http://dev.pulp3:8000/api/v3/publishers/ansible/007682b4-f522-469b-92c9-baeca276529a/publish/ http://dev.pulp3:8000/api/v3/publishers/file/007682b4-f522-469b-92c9-baeca276529a/publish/ repository=http://dev.pulp3:8000/api/v3/repositories/96a7048f-bda6-4ccc-8317-a8dca80defae/ 

 </pre> 

 <pre> 
 HTTP/1.0 500 Internal Server Error 

 </pre> 

 <pre> 

 Traceback:   

 File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/core/handlers/exception.py" in inner 
   41.               response = get_response(request) 

 File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response 
   249.               response = self._get_response(request) 

 File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/core/handlers/base.py" in _get_response 
   187.                   response = self.process_exception_by_middleware(e, request) 

 File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/core/handlers/base.py" in _get_response 
   185.                   response = wrapped_callback(request, *callback_args, **callback_kwargs) 

 File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view 
   58.           return view_func(*args, **kwargs) 

 File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rest_framework/viewsets.py" in view 
   95.               return self.dispatch(request, *args, **kwargs) 

 File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rest_framework/views.py" in dispatch 
   494.               response = self.handle_exception(exc) 

 File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rest_framework/views.py" in handle_exception 
   454.               self.raise_uncaught_exception(exc) 

 File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rest_framework/views.py" in dispatch 
   491.               response = handler(request, *args, **kwargs) 

 File "/home/vagrant/devel/pulp_file/pulp_file/app/viewsets.py" in publish 
   147.               [repository_version.repository, publisher], 

 Exception Type: AttributeError at /api/v3/publishers/file/007682b4-f522-469b-92c9-baeca276529a/publish/ 
 Exception Value: 'NoneType' object has no attribute 'repository' 

 </pre>

Back