Project

Profile

Help

Issue #7054

closed

Manifest endpoint renders errors with the wrong renderer

Added by mdellweg almost 4 years ago. Updated over 3 years ago.

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

Description

What it looks like:

$ http get :24817/v2/foo/bar/manifests/1.0
HTTP/1.1 401 Unauthorized
Allow: GET, PUT, HEAD, OPTIONS
Connection: close
Content-Length: 6
Content-Type: */*; charset=utf-8
Date: Mon, 29 Jun 2020 06:29:04 GMT
Docker-Distribution-API-Version: registry/2.0
Server: gunicorn/20.0.4
WWW-Authenticate: Bearer realm="http://localhost:24816/token",service="localhost:24816",scope="repository:foo/bar:pull"
X-Frame-Options: SAMEORIGIN

detail

What it should look like (Content-Type header is important):

$ http put :24817/v2/              
HTTP/1.1 401 Unauthorized
Allow: GET, HEAD, OPTIONS
Connection: close
Content-Length: 111
Content-Type: application/json
Date: Mon, 29 Jun 2020 06:30:34 GMT
Docker-Distribution-API-Version: registry/2.0
Server: gunicorn/20.0.4
Vary: Accept
WWW-Authenticate: Bearer realm="http://localhost:24816/token",service="localhost:24816"
X-Frame-Options: SAMEORIGIN

{
    "errors: [{
        "code": "UNAUTHORIZED",
        "message": "Access to the requested resource is not authorized. A Bearer token is missing in a request header.",
        "detail": {}
    }]
}
Actions #1

Updated by ipanova@redhat.com almost 4 years ago

  • Sprint/Milestone set to 2.0.0
  • Triaged changed from No to Yes
Actions #3

Updated by mdellweg almost 4 years ago

  • Description updated (diff)
Actions #4

Updated by pulpbot almost 4 years ago

  • Status changed from NEW to POST
Actions #5

Updated by mdellweg almost 4 years ago

  • Assignee set to mdellweg
  • Sprint set to Sprint 76
Actions #6

Updated by rchan almost 4 years ago

  • Sprint changed from Sprint 76 to Sprint 77
Actions #7

Updated by mdellweg almost 4 years ago

  • Status changed from POST to MODIFIED
Actions #9

Updated by pulpbot over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF