Project

Profile

Help

Issue #3230

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

Repository version REST API returns 200 instead of 404

Added by dkliban@redhat.com almost 2 years ago. Updated 11 days ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 31

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": []
}

Associated revisions

Revision 3ab71497 View on GitHub
Added by daviddavis almost 2 years ago

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

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

Revision 3ab71497 View on GitHub
Added by daviddavis almost 2 years ago

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

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

Revision 3ab71497 View on GitHub
Added by daviddavis almost 2 years ago

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

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

History

#1 Updated by dalley almost 2 years ago

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

#2 Updated by daviddavis almost 2 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis

#3 Updated by daviddavis almost 2 years ago

  • Status changed from ASSIGNED to POST

#4 Updated by rchan almost 2 years ago

  • Sprint/Milestone changed from 52 to 53

#5 Updated by daviddavis almost 2 years ago

  • Status changed from POST to MODIFIED

#6 Updated by bmbouter over 1 year ago

  • Sprint set to Sprint 31

#7 Updated by bmbouter over 1 year ago

  • Sprint/Milestone deleted (53)

#8 Updated by dkliban@redhat.com over 1 year ago

  • Sprint/Milestone set to 3.0

#9 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3, Pulp 3 MVP)

#10 Updated by margleo 11 days ago

Nice to see this here and thanks for sharing this to us. Get more about the best apps here. https://bestwashingmachines.co.in

Please register to edit this issue

Also available in: Atom PDF