[RTFACT-13004] 401 when trying to get item property from Docker V2 repositories Created: 15/Dec/16  Updated: 15/Jul/20

Status: Open
Project: Artifactory Binary Repository
Component/s: Docker, REST API
Affects Version/s: 4.15.0, 5.8.4
Fix Version/s: None

Type: Bug Priority: High
Reporter: Yonatan Brand Assignee: Unassigned
Resolution: Unresolved Votes: 3
Labels: None


 Description   

When trying to get item property from a v2 Docker repository we encounter a 401 error while from other repositories we get the properties.

Steps to reproduce:
1. add a property under a file in a docker repository.
2. use the following REST API command - curl -X GET http://ARTIFACTORY_URL:PORT/artifactory/api/storage/DOCKER_REPOSITORY/PATH/TO/FILE?properties

Output from console:
{
"errors" : [

{ "status" : 401, "message" : "Unauthorized" }

]

When trying to get the property from a different repository we get the properties under the file:

curl -X GET ARTIFACTORY_URL:PORT/artifactory/api/storage/REPOSITORY/PATH/TO/FILE?properties
{
"properties" :

{ "asd" : [ "asd" ] }

,
"uri" : "http://ARTIFACTORY_URL:PORT/artifactory/api/storage/REPOSITORY/PATH/TO/FILE"

NOTE - This issue occurs only in Docker V2 repositories.



 Comments   
Comment by Antoine Lemieux [ 19/Jun/19 ]

We are currently migrating from Nexus Docker registry which were allowing us to query the docker API as anonymous access...  we should be able to authorized anonymous access to the docker V2 API. (i.e.: /v2/<docker_image_name>/tags/list)

Generated at Tue Sep 22 17:54:54 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.