Issue #481
closedRetrieving consumer history for a consumer that doesn't exist results in a 200 OK
Description
Description of problem:
The docs (https://pulp-dev-guide.readthedocs.org/en/latest/integration/rest-api/consumer/history.html#retrieve-consumer-event-history) say a 404 should be returned if the consumer doesn't exist. However, a 200 and an empty list is actually returned.
Version-Release number of selected component (if applicable): master
How reproducible: always
Steps to Reproduce:
1. curl -i -H "Accept: application/json" -X GET -u admin:admin -k 'https://localhost/pulp/api/v2/consumers/NotARealConsumer/history/'
Actual results:
HTTP/1.1 200 OK
Date: Thu, 07 Aug 2014 15:25:56 GMT
Server: Apache/2.4.10 (Fedora) OpenSSL/1.0.1e-fips mod_wsgi/3.5 Python/2.7.5
Content-Length: 2
Content-Type: application/json
[]
Expected results:
404 Not Found
Additional info:
+ This bug was cloned from Bugzilla Bug #1127817 +