Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1696824 - Unauthenticated pull not working for Head requests
Summary: Unauthenticated pull not working for Head requests
Status: CLOSED DUPLICATE of bug 1672802
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Container Management
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Mirosław Zalewski
Depends On:
TreeView+ depends on / blocked
Reported: 2019-04-05 17:13 UTC by Partha Aji
Modified: 2019-04-05 17:34 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-04-05 17:34:59 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Foreman Issue Tracker 26549 None None None 2019-04-05 17:25:13 UTC

Description Partha Aji 2019-04-05 17:13:00 UTC
Description of problem:
Given an allowance of an unauthenticated pull for the Library environment head requests are not given a free pass.

$ curl -L --head

HTTP/1.1 401 Unauthorized
Date: Fri, 05 Apr 2019 16:13:13 GMT
Server: Apache

Version-Release number of selected component (if applicable):
6.5.0 earlier

How reproducible:

Steps to Reproduce:
1. Create a docker repo with the following url and  upstream name
registry url:
upstream name: openshift-release-dev/ocp-release
2. Sync the repo
3. Goto Content->Lifecycle Environments
4. Choose library and set unauthenticated pull to yes
5. Try the following call
$ curl -L --head https://<sat>/v2/default_organization-<$PRODUCT>-<$REPO>/manifests/4.0.0-0

Actual results:
HTTP/1.1 401 Unauthorized
Date: Fri, 05 Apr 2019 16:13:13 GMT
Server: Apache

Expected results:
$ curl -L --head
HTTP/1.1 200 OK
Date: Fri, 05 Apr 2019 16:18:31 GMT
Server: Apache
Foreman_version: 1.22.0-develop
Foreman_api_version: 2
Docker-Content-Digest: sha256:59c38273d9331211a5ad2c6fd10634f6db1932c15412e86bbeeba548c9c4c82c
Content-Type: application/json; charset=utf-8
Docker-Distribution-API-Version: registry/2.0

Additional info:

Comment 3 Partha Aji 2019-04-05 17:25:12 UTC
Connecting redmine issue from this bug

Comment 4 Brad Buckingham 2019-04-05 17:34:59 UTC

*** This bug has been marked as a duplicate of bug 1672802 ***

Note You need to log in before you can comment on or make changes to this bug.