Issue #400
Updated by ipanova@redhat.com about 9 years ago
Description of problem: <pre> In the current docs in Grant/Revoke permissions section wrong response code: $ curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X POST -k -u admin:admin -d '{"operations": ["READ", "DELETE"],"login": "ina","resource": "/v2/repositories/"}' "https://localhost//pulp/api/v2/permissions/actions/revoke_from_user/" "409 - if any of the parameters are invalid" HTTP/1.1 404 Not Found Date: Tue, 31 Mar 2015 14:18:52 GMT Server: Apache/2.4.10 (Fedora) OpenSSL/1.0.1e-fips mod_wsgi/3.5 Python/2.7.5 Content-Encoding: utf-8 Content-Length: 368 Content-Type: application/json {"http_request_method": "POST", "exception": null, "error_message": "Missing resource(s): user=ina", "_href": "/pulp/api/v2/permissions/actions/revoke_from_user/", "http_status": 404, "error": {"code": "PLP0009", "data": {"resources": {"user": "ina"}}, "description": "Missing resource(s): user=ina", "sub_errors": []}, "traceback": null, "resources": {"user": "ina"}}[ipanova@ina pulp]$ http://pulp-dev-guide.readthedocs.org/en/latest/integration/rest-api/permission/actions.html#grant-revoke-permissions-from-user-or-role Version-Release number of selected component (if applicable): </pre> How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: 404 409 response code Expected results: 400 response code Additional info: + This bug was cloned from "Bugzilla Bug #1066472":https://bugzilla.redhat.com/show_bug.cgi?id=1066472 +