Issue #1075
closedPulpDataException on missing parameter when adding distr to a repo group
Description
PulpDataException is raised if one of the required parameters is missing for adding distributor to a repo group
>> rpm -qa pulp-server
pulp-server-2.7.0-0.3.beta.el7.noarch
>> curl -i -s -H Accept: application/json -H "WebFrameworkSwitch: webpy" -X POST -d '{"distributor_type_id": "group_export_distributor"}' -k -u admin:admin https://localhost/pulp/api/v2/repo_groups/zoo_group/distributors/
HTTP/1.1 400 BAD REQUEST
Date: Tue, 30 Jun 2015 10:27:58 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: 390
Connection: close
Content-Type: application/json
{"http_request_method": "POST", "exception": null, "error_message": "Pulp exception occurred: PulpDataException", "_href": "/pulp/api/v2/repo_groups/zoo_group/distributors/", "http_status": 400, "error": {"code": "PLP0000", "data": {}, "description": "Pulp exception occurred: PulpDataException", "sub_errors": []}, "args": [["Missing required configuration key: http"]], "traceback": null}
I expect just an error: Missing values for: ['distributor_config']"
like here https://pulp.plan.io/issues/795#note-6
I
Updated by bcourt almost 9 years ago
- Triaged changed from No to Yes
Server side we should default the value if none is specified and the documentation should indicate what the default value is.
Updated by bmbouter about 5 years ago
- Status changed from NEW to CLOSED - WONTFIX
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.