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
Updated by amacdona@redhat.com over 9 years ago
- Status changed from ASSIGNED to MODIFIED
Updated by dkliban@redhat.com over 9 years ago
- Status changed from MODIFIED to 5
Updated by amacdona@redhat.com over 9 years ago
- Related to Issue #812: /v2/repositories/<repo_id>/actions/resolve_dependencies/ should be removed added
Updated by amacdona@redhat.com over 9 years ago
- Status changed from 5 to CLOSED - WONTFIX
The code that fixes this change was removed, along with the entire endpoint to fix https://pulp.plan.io/issues/812.
Actions