Issue #3063
Updated by dkliban@redhat.com about 7 years ago
Install pulpcore without any plugins. Create repository. <pre>http POST http://localhost:8000/api/v3/repositories/ name=foo2</pre> Attempt to add file importer <pre> (pulp) [vagrant@pulp3 pulp_example]$ http POST http://localhost:8000/api/v3/repositories/foo2/importers/file/ name='bar' download_policy='immediate' sync_mode='mirror' feed_url='https://repos.fedorapeople.org/pulp/pulp/demo_repos/test_file_repo/PULP_MANIFEST' HTTP/1.0 406 Not Acceptable Allow: GET, HEAD, OPTIONS Content-Length: 57 Content-Type: application/coreapi+json Date: Tue, 10 Oct 2017 17:29:50 GMT Server: WSGIServer/0.2 CPython/3.5.4 Vary: Accept X-Frame-Options: SAMEORIGIN { "detail": "Could not satisfy the request Accept header." } </pre> Downgrading djangorestframework to 3.6.4 and Reverting urls.py to to 97093b071224700ff93fb6256292a53b424ddf1f commit produces the right response <pre>git checkout 97093b071224700ff93fb6256292a53b424ddf1f platform/pulpcore/app/urls.py</pre> <pre> (pulp) [vagrant@pulp3 pulp_example]$ http POST http://localhost:8000/api/v3/repositories/foo2/importers/file/ name='bar' download_policy='immediate' sync_mode='mirror' feed_url='https://repos.fedorapeople.org/pulp/pulp/demo_repos/test_file_repo/PULP_MANIFEST' HTTP/1.0 404 Not Found Content-Length: 17054 Content-Type: text/html Date: Tue, 10 Oct 2017 17:35:53 GMT Server: WSGIServer/0.2 CPython/3.5.4 X-Frame-Options: SAMEORIGIN <!DOCTYPE html> <html lang="en"> <head> </pre> The follwoing commit broke things: https://github.com/pulp/pulp/commit/8ecb2c2babe553014bde1a96232d0e6865068ef2