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

FIX: Handle storage providers not implementing ACLs #13675

Merged
merged 1 commit into from
Jul 9, 2021

Conversation

martin-brennan
Copy link
Contributor

@martin-brennan martin-brennan commented Jul 9, 2021

When secure media is enabled or when upload secure status
is updated, we also try and update the upload ACL. However
if the object storage provider does not implement this we
get an Aws::S3::Errors::NotImplemented error. This PR handles
this error so the update_secure_status method does not error
out and still returns whether the secure status changed.

Context at https://meta.discourse.org/t/can-not-edit-topics-with-picture-with-s3-backend/193727/12

When secure media is enabled or when upload secure status
is updated, we also try and update the upload ACL. However
if the object storage provider does not implement this we
get an Aws::S3::Errors::NotImplemented error. This PR handles
this error so the update_secure_status method does not error
out and still returns whether the secure status changed.
@martin-brennan martin-brennan merged commit 9f275c1 into master Jul 9, 2021
@martin-brennan martin-brennan deleted the issue/handle-unsupported-acl-for-non-s3 branch July 9, 2021 01:31
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/can-not-edit-topics-with-picture-with-s3-backend/193727/12

@dirien
Copy link

dirien commented Jul 16, 2021

hi @martin-brennan , is this inclueded in the 2.8.0.beta3 release?

@martin-brennan
Copy link
Contributor Author

@dirien if the commit 9f275c1 was made before the beta3 commit in the main branch, then yes

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

Successfully merging this pull request may close these issues.

4 participants