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

Copying does not apply S3 acl #2627

Closed
xanderman opened this issue Sep 8, 2022 · 1 comment
Closed

Copying does not apply S3 acl #2627

xanderman opened this issue Sep 8, 2022 · 1 comment

Comments

@xanderman
Copy link

This is possibly related to #2240. I'm not sure if they're the same issue or not.

We have the following in our carrierwave initializer:

config.fog_attributes = {
  "Content-Disposition" => "attachment;",
  cache_control: "max-age=315576000",
  expires: 1.year.from_now.httpdate,
  'x-amz-acl' => 'bucket-owner-full-control'
}

The acl is properly set on uploads, but is lost on copies. We use code like record.document.file.copy_to(new_path) to do an S3 copy, where document is a column with an uploader mounted. The new S3 object is created with a private acl, when it should have the bucket-owner-full-control acl.

@mshibuya
Copy link
Member

Fixed by #2503.

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

No branches or pull requests

2 participants