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

GCS: pass acl_header for public read if fog is public #2525

Merged
merged 1 commit into from
Jan 18, 2021

Conversation

yosiat
Copy link
Contributor

@yosiat yosiat commented Dec 30, 2020

When upgrading from carrierwave 1.3 to 2 we noticed that when we upload to GCS the URL we get is not public, even though we have fog_public = true in our initializer.

After some investigation it looks like the copy_object is not maintaining the ACL, this change is passing the correct ACL if fog_public is true.

Tested locally and it fixed the issue.

Closes #2426
fog-google pr: fog/fog-google#513

If not done, uploading a file via carrierwave with fog_public will return access denied.

Closes carrierwaveuploader#2426
@yosiat
Copy link
Contributor Author

yosiat commented Jan 3, 2021

@mshibuya hi! can you look at this PR please?

@thiagofm
Copy link
Member

thiagofm commented Jan 18, 2021

@yosiat Thanks for your contribution ❤️ . LGTM

@thiagofm thiagofm merged commit 09f9f27 into carrierwaveuploader:master Jan 18, 2021
@yosiat yosiat deleted the fog-google-copy-object branch January 18, 2021 15:02
@yosiat
Copy link
Contributor Author

yosiat commented Jan 18, 2021

@thiagofm thanks a lot :)

once we have a release, we will upgrade asap :)

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.

Migration from 1.3.1 to 2.0.1 breaks public permissions with Google Cloud Storage
2 participants