Open rk opened 6 months ago
Hi, I'm not sure how a Flysystem change can cause a 403 in this case. I would have expected a 400. Are you able to do any other write? Since directory creation in S3 is just a relatively normal write. If you have a bucket that enforces no ACL, you may need to configure the default directory permissions to be private
instead of the default public permissions.
Hi Frank,
Yes, I can write files to both locations. I thought to check that, and I'm wondering if it's an AWS client library issue. I maintain several other projects with similar policies, and library versions, and they haven't had the issue.
The bucket is 100% private, and we use signed links for any downloads.
It's been driving me crazy this week.
Bug Report
Recently upgraded application with Laravel 10, Laravel Backpack 6, with
barryvdh/elfinder
as a filemanager for the client (for organization and bulk-uploads). Prior to these upgrades, the application had stable access to the S3 bucket and could easily create/delete/upload files and folders.Summary
We recently upgraded an application to Laravel v10, Backpack v6, and the latest elfinder. Previous to these upgrades, for some unknown time, the application was able to call
$adapter->createDirectory('test')
and succeed.Now, we get the following error.
I updated the IAM policy to allow all S3 actions on the bucket for testing (I don't recommend this, but had to rule a policy issue out):
So this doesn't appear to be an issue with the IAM policy attached to the user. I can upload files to this same bucket/adapter, but it immediately dies upon a call to
createDirectory()
.Laravel configuration for the disk is 100% stock. Nothing custom.
Bucket settings/details:
How to reproduce
Reproducing this error does not require use of elFinder. So I can eliminate that as a cause of the issue.
Steps to reproduce for me:
The 2nd test is the first time I've observed that error. Is this server related?