Skip to content
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

[4.x] Fix missing config pass to mount manager #9065

Merged
merged 3 commits into from
Nov 27, 2023

Conversation

balazs-mocsai
Copy link
Contributor

Pass the config to the MountManager constructor, otherwise the config (from config/filesystems) will be empty and the copyAcrossFilesystem will call visibility method on AwsS3V3Adapter which is unsupported on R2 (and possibly other S3 providers other than AWS).

284050261-3b550248-2dd9-49cb-8066-e87c5bcceb9d

Closes #7193

Copy link
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this. You've shown what the problem actually was - that the visibility method gets called if the config is missing. On R2 I guess it's not implemented and ends up throwing an exception.

Rather than passing the whole config, I'm now just passing visibility, which is enough to prevent the method from being called.

@jasonvarga jasonvarga merged commit c54dbfe into statamic:4.x Nov 27, 2023
18 checks passed
@arshaktmintmint
Copy link

@jasonvarga the solution in the image is not about add ['visibility' => 'private']
Please have a look at #7193 (comment) solution and it is working as expected. Because in filesystem we can have public visibility and this solution is only hard coded private.

@jasonvarga
Copy link
Member

This was a confirmed solution. If you're still running into a problem please open a new issue with details. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cloudflare R2 disk setup with S3 resulting in "unable to copy file from source to cache" error
3 participants