Actions
Issue #806
closedAPI call to resolve repo dependencies with bad criteria returns unhelpful exception
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
A call to /v2/repositories/<destination_repo_id>/actions/resolve_dependencies/ with invalid criteria returns an unhelpful exception.
To replicate
$ curl -s -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X POST -d '{"criteria": {"invalid_field": "fails"}}' -k -u admin:admin "https://localhost/pulp/api/v2/repositories/test/actions/resolve_dependencies/" | python -mjson.tool
{
"_href": "/pulp/api/v2/repositories/test/actions/resolve_dependencies/",
"args": [],
"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
}
Note: this will be fixed in the Django conversion
Related issues
Actions