Project

Profile

Help

Issue #1076

closed

PulpDataException if parameter is invalid when adding distributor to a repo group

Added by igulina@redhat.com almost 9 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.7.0 Beta
Platform Release:
OS:
RHEL 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description


>> rpm -qa pulp-server
pulp-server-2.7.0-0.3.beta.el7.noarch

>>   curl -s -H Accept: application/json -H "WebFrameworkSwitch: webpy" -X POST -d '{"distributor_type_id": "group_export_distributor","distributor_config": { "http": "yes", "https": false }}' -k -u admin:admin https://localhost/pulp/api/v2/repo_groups/zoo_group/distributors/ | python -m json.tool
{
    "_href": "/pulp/api/v2/repo_groups/zoo_group/distributors/",
    "args": [
        [
            "http should be a boolean; got yes instead"
        ]
    ],
    "error": {
        "code": "PLP0000",
        "data": {},
        "description": "Pulp exception occurred: PulpDataException",
        "sub_errors": []
    },
    "error_message": "Pulp exception occurred: PulpDataException",
    "exception": null,
    "http_request_method": "POST",
    "http_status": 400,
    "traceback": null
}

I expect just an error like here #317:

>> curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X DELETE -k -u admin:admin -d '{"force":"yes"}' "https://localhost/pulp/api/v2/consumers/maruska/bindings/zoo_repo/yum_distributor/" 
HTTP/1.1 400 BAD REQUEST
Date: Sat, 27 Jun 2015 13:44:30 GMT
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Content-Encoding: utf-8
Content-Length: 410
Connection: close
Content-Type: application/json

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

Updated by igulina@redhat.com almost 9 years ago

  • Subject changed from 400 is not raised if parameter is invalid when adding distributor to a repo group to PulpDataException if parameter is invalid when adding distributor to a repo group
  • Description updated (diff)
Actions #2

Updated by bcourt almost 9 years ago

  • Severity changed from 2. Medium to 1. Low
  • Triaged changed from No to Yes

A more specific exception should be raised.

Actions #3

Updated by bmbouter about 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #4

Updated by bmbouter about 5 years ago

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #5

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF