Project

Profile

Help

Issue #806

closed

API call to resolve repo dependencies with bad criteria returns unhelpful exception

Added by amacdona@redhat.com over 9 years ago. Updated over 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Category:
-
Sprint/Milestone:
-
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

Related to Pulp - Issue #812: /v2/repositories/<repo_id>/actions/resolve_dependencies/ should be removedCLOSED - CURRENTRELEASEamacdona@redhat.comActions
Actions #1

Updated by amacdona@redhat.com over 9 years ago

  • Status changed from ASSIGNED to MODIFIED
Actions #2

Updated by dkliban@redhat.com over 9 years ago

  • Status changed from MODIFIED to 5
Actions #3

Updated by amacdona@redhat.com over 9 years ago

  • Related to Issue #812: /v2/repositories/<repo_id>/actions/resolve_dependencies/ should be removed added
Actions #4

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 #5

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF