-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ls
against protected buckets does not work
#45
Comments
Making some noise for this issue because it appears the fix for issue #44 did not fix this particular |
Testing with the below methodology results in success. [root@dc2be604757a testdata]# cat prop_query curl -k -H 'Depth: 1' -X PROPFIND http://localhost:8080/my-magic-path/10mb.dat -d prop_query <D:multistatus xmlns:D="DAV:" xmlns:ns1="http://apache.org/dav/props/" xmlns:ns0="DAV:"> |
Here's the pertinent config I'm using to generate the error:
This should point my namespace
All looks good there. Next, I try to send a PROPFIND to the configured prefix, which should map to the root of the bucket and list the two test objects:
I believe the following is all of the relevant logging to come out of xrootd:
At first I wondered whether there might be an issue with the empty prefix being constructed in the HTTPs request ( |
As an update, Rich and I went over our two approaches together and we found this issue is specifically tied to |
More data while I'm thinking of it. Path style urls are deprecated and will go away someday. Currently, you cannot have a bucket that is listable unless you specifically add the ListObjects grant to public. This definitely isn't the whole problem, but was masking some things, so I'm recording it here. e.g.
|
@jhiemstrawisc - can you produce a unit test that fails with |
I'll look into it in the next week. |
Did some online debugging in Slack and I've been convinced that the original issue has been fixed. However, Justin's test bucket certainly revealed a separate bug which I've filed as #63. |
When the origin is configured to point to private buckets (those with a secret/access key), the
ls
functionality triggered by issuing a PROPFIND request to the origin fails. I suspect the source of this bug is being touched and potentially fixed in #44 where the S3 listing URL is created, but we should confirm. My hunch is that the 403 being fixed by that PR is the same reasonls
is not working.The text was updated successfully, but these errors were encountered: