Project

Profile

Help

Issue #7052

As an unauthenticated user I can list pulp_file repoistories

Added by bmbouter over 1 year ago. Updated over 1 year ago.

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

Description

To Reproduce

  1. Have an empty Pulp system (no repositories). I'm not sure if this step is meaningful or not
  2. Ensure httpie won't submit any authentication credentials, e.g. delete your .netrc file on a dev environment
  3. Run http localhost/pulp/api/v3/repositories/file/file/
  4. Observe you'll get something like:
HTTP/1.1 200 OK
Allow: GET, POST, HEAD, OPTIONS
Connection: keep-alive
Content-Length: 52
Content-Type: application/json
Date: Fri, 26 Jun 2020 18:28:21 GMT
Server: nginx/1.18.0
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "count": 0,
    "next": null,
    "previous": null,
    "results": []
}

Expected Result

HTTP/1.1 403 Forbidden
Allow: GET, POST, HEAD, OPTIONS
Connection: keep-alive
Content-Length: 58
Content-Type: application/json
Date: Fri, 26 Jun 2020 18:28:05 GMT
Server: nginx/1.18.0
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "detail": "Authentication credentials were not provided."
}

History

#1 Updated by fao89 over 1 year ago

  • Status changed from NEW to CLOSED - WORKSFORME

Also available in: Atom PDF