Project

Profile

Help

Issue #400

closed

Wrong response code in Grant/Revoke permissions section

Added by ipanova@redhat.com about 9 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

Description of problem:

$ 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/"
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]$ 
Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:
404 response code

Expected results:
400 response code

Additional info:

+ This bug was cloned from Bugzilla Bug #1066472 +

Also available in: Atom PDF