Project

Profile

Help

Issue #560

closed

404 should be returned when non existent repo group is provided during publish

Added by ipanova@redhat.com about 9 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.5
Platform Release:
2.6.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Description of problem:
https://pulp-dev-guide.readthedocs.org/en/latest/integration/rest-api/repo/groups/publish.html
From docs:

404 - if the repository group ID given does not exist.

A call report is returned instead.

Version-Release number of selected component (if applicable):
2.5.0-0.6.beta

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:
call report returned

Expected results:
404 returned

Additional info:

  1. curl -i -H "Accept: application/json" -X POST -k -u admin:admin -d '{"id":"dist_1", "override_config": {}}' 'https://example.com/pulp/api/v2/repo_groups/invalid_repo_group/actions/publish/'
    HTTP/1.1 202 Accepted
    Date: Thu, 02 Oct 2014 16:23:22 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: 172
    Content-Type: application/json

{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/7d9f4ba8-174b-456a-8c62-3f4a89893980/", "task_id": "7d9f4ba8-174b-456a-8c62-3f4a89893980"}], "result": null, "error": null}

+ This bug was cloned from Bugzilla Bug #1148928 +

Also available in: Atom PDF