Project

Profile

Help

Issue #317

closed

400 is never raised during consumer binding deletion

Added by ipanova@redhat.com almost 10 years ago. Updated over 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:
Pulp 2
Sprint:
Quarter:

Description

$ curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X DELETE -k -u admin:admin -d '{"force":"yes"}' "https://localhost/pulp/api/v2/consumers/new_consumer1/bindings/xxx/yum_distributor/"
HTTP/1.1 202 Accepted
Date: Thu, 26 Feb 2015 09:50:25 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: 172
Content-Type: application/json

{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/064ba133-a4a8-491a-8e4f-c1d8c5966ec9/", "task_id": "064ba133-a4a8-491a-8e4f-c1d8c5966ec9"}], "result": null, "error": null}

I expect:

{"http_request_method": "DELETE", "exception": null, "error_message": "Invalid properties: ['force']", "property_names": ["force"], "_href": "/pulp/api/v2/consumers/new_consumer1/bindings/xxx/yum_distributor/", "http_status": 400, "error": {"code": "PLP0015", "data": {"property_names": ["force"], "properties": "['force']"}, "description": "Invalid properties: ['force']", "sub_errors": []}, "traceback": null}

Also available in: Atom PDF