Project

Profile

Help

Issue #3230

closed

Story #3209: As a user, I have Repository Versions

Repository version REST API returns 200 instead of 404

Added by dkliban@redhat.com over 6 years ago. Updated over 3 years ago.

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

Description

Need to add a check for existence of repository id.

[vagrant@pulp3 devel]$ http :8000/api/v3/repositories/04fa84f6-f748-4369-aec1-4378b43e1f42/
HTTP/1.0 404 Not Found
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Length: 23
Content-Type: application/json
Date: Wed, 20 Dec 2017 17:56:02 GMT
Server: WSGIServer/0.2 CPython/3.5.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "detail": "Not found."
}

[vagrant@pulp3 devel]$ http :8000/api/v3/repositories/04fa84f6-f748-4369-aec1-4378b43e1f42/versions/
HTTP/1.0 200 OK
Allow: GET, HEAD, OPTIONS
Content-Length: 42
Content-Type: application/json
Date: Wed, 20 Dec 2017 17:56:06 GMT
Server: WSGIServer/0.2 CPython/3.5.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "next": null,
    "previous": null,
    "results": []
}
Actions #1

Updated by dalley over 6 years ago

  • Sprint/Milestone set to 52
  • Triaged changed from No to Yes
Actions #2

Updated by daviddavis over 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis
Actions #3

Updated by daviddavis over 6 years ago

  • Status changed from ASSIGNED to POST
Actions #4

Updated by rchan over 6 years ago

  • Sprint/Milestone changed from 52 to 53

Added by daviddavis over 6 years ago

Revision 3ab71497 | View on GitHub

Add a check to see if parent object exists for nested viewsets

fixes #3230 https://pulp.plan.io/issues/3230

Added by daviddavis over 6 years ago

Revision 3ab71497 | View on GitHub

Add a check to see if parent object exists for nested viewsets

fixes #3230 https://pulp.plan.io/issues/3230

Actions #5

Updated by daviddavis over 6 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 31
Actions #7

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (53)
Actions #8

Updated by dkliban@redhat.com about 6 years ago

  • Sprint/Milestone set to 3.0.0
Actions #9

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3, Pulp 3 MVP)
Actions #10

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF