Project

Profile

Help

Issue #806

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

Added by amacdona@redhat.com over 6 years ago. Updated over 2 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 - CURRENTRELEASE<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by amacdona@redhat.com over 6 years ago

  • Status changed from ASSIGNED to MODIFIED

#2 Updated by dkliban@redhat.com about 6 years ago

  • Status changed from MODIFIED to 5

#3 Updated by amacdona@redhat.com about 6 years ago

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

#4 Updated by amacdona@redhat.com about 6 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.

#5 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF