Issue #795
closedMissingResource is raised when required key 'units' is missing during schedule creation
Description
$ curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: django" -X POST -k -u admin:admin -d '{"schedule":"P1D"}' "https://localhost/pulp/api/v2/consumers/c1/schedules/content/install/"
HTTP/1.1 404 NOT FOUND
Date: Wed, 18 Mar 2015 15:23:06 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: 418
Content-Type: application/json
{"http_request_method": "POST", "exception": null, "error_message": "Missing resource(s): resource_id=['units']", "_href": "/pulp/api/v2/consumers/c1/schedules/content/install/", "http_status": 404, "error": {"code": "PLP0009", "data": {"resources": {"resource_id": ["units"]}}, "description": "Missing resource(s): resource_id=['units']", "sub_errors": []}, "traceback": null, "resources": {"resource_id": ["units"]}}
I expect 400 and MissingValue
Updated by ipanova@redhat.com over 8 years ago
- Status changed from NEW to POST
Updated by ipanova@redhat.com over 8 years ago
- Status changed from POST to MODIFIED
Updated by dkliban@redhat.com over 8 years ago
- Status changed from MODIFIED to 5
Updated by igulina@redhat.com over 8 years ago
- Status changed from 5 to 6
>> rpm -qa pulp-server
pulp-server-2.7.0-0.3.beta.fc20.noarch
>> curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: django" -X POST -k -u admin:admin -d '{"schedule":"P1D"}' "https://localhost/pulp/api/v2/consumers/cheburashka/schedules/content/install/"
HTTP/1.1 400 BAD REQUEST
Date: Fri, 19 Jun 2015 09:14:49 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: 412
Connection: close
Content-Type: application/json
{"http_request_method": "POST", "exception": null, "error_message": "Missing values for: ['units']", "_href": "/pulp/api/v2/consumers/cheburashka/schedules/content/install/", "http_status": 400, "error": {"code": "PLP0016", "data": {"property_names": ["units"], "properties": "['units']"}, "description": "Missing values for: ['units']", "sub_errors": []}, "missing_property_names": ["units"], "traceback": null}
Updated by amacdona@redhat.com about 8 years ago
- Status changed from 6 to CLOSED - CURRENTRELEASE
Added by Mike DePaulo about 2 years ago
Added by Mike DePaulo about 2 years ago
Revision 3111db80 | View on GitHub
Update packages mode support for Pulp 3.15
by changing the default package name prefix (pulp_pkg_name_prefix
)
from python3-
to tfm-pulpcore-python3-
.
Also update pulp_pkg_repo in CI.
fixes: #795
Update packages mode support for Pulp 3.15
by changing the default package name prefix (
pulp_pkg_name_prefix
) frompython3-
totfm-pulpcore-python3-
.Also update pulp_pkg_repo in CI.
fixes: #795