Reputation: 1599
I'm trying to seach for an artifact using "File List" API http://server:port/api/storage/folder1/folder2?list&deep=1&depth=3&listFolders=1
The actual artifact is inside the sub-folder(lets say, folder3) of folder2. But the response for this api call is like,
{
"uri": "some uri"
"created": "some time stamp"
"files": [ ]
}
file list is empty in the response, but there are many files inside folder 3.
Upvotes: 2
Views: 6450
Reputation: 20376
One reason for this can be lack of permissions. The file list API will only returns items which the requesting user have read permission for.
In your case, since the same user is able to get the artifact info for /folder1/folder2/folder3/filename
but not the file list for /folder1
, there might be a permission target which prevents the user from reading the content of folder1 of folder2. This can happen if a permission target has an exclude pattern, for example folder1/*
.
If you have Artifactory admin rights, you can check this from the UI by looking at the effective permissions tab for folder1, folder2, folder3.
Upvotes: 1