-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add prefix
to _s3_exists_dir
to avoid permissions issues
#214
Conversation
bors try |
tryBuild failed: |
Getting this to work reliably was extremely tricky and subtle, even if that comment is wrong it seems likely this will break. Are you sure it will still pick up the directory in all cases with both arguments? Can you be more specific about what permission issue the existing code is causing? |
Using IAM permissions that use conditional We should definitely be adding a test for this behaviour. |
For testing we should probably create an IAM role and an associated policy which creates the original problem. Ideally we'd do use something like a CFN template to create these resources similar to: https://github.com/JuliaCloud/AWS.jl/blob/v1.61.0/test/resources/aws_jl_test.yaml. Unfortunately this project doesn't have an existing setup for that. |
Yikes. Man, AWS is so painful sometimes. Ok, well of course after you do whatever it takes to get tests passing on AWS I will implement new (or rather old) methods in Minio.jl as needed. |
I feel like we need to vamp up our test cases for this stuff. From personal experience I've found it's very very tricky to get right. |
If the
? |
Just to verify what's blocking this:
Is there anything else? |
Superseded by #289 |
The comment here is wrong; you can use both
start-after
andprefix
on AWS (see the examples here: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html#API_ListObjectsV2_Examples). And in fact, if you have per-prefix access control setup, you need to restrict your queries to the prefix to not get access denied errors.I am guessing the comment refers to Minio, where this can be solved by a dispatch in Minio.jl. We can see what the tests say.
cc @christopher-dG @ExpandingMan