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

rescue chown in case it fails #3856

Merged
merged 2 commits into from
Oct 7, 2024
Merged

rescue chown in case it fails #3856

merged 2 commits into from
Oct 7, 2024

Conversation

johrstrom
Copy link
Contributor

Fix #3851 by rescing this chown operation in case it fails.

Rails.logger.info("cannot chown #{path} because of error: #{e}")
end

nil
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm also ensuring we return nil here because other handle_upload methods return a Transfer.

@johrstrom johrstrom merged commit de41471 into master Oct 7, 2024
26 checks passed
@johrstrom johrstrom deleted the safe-chown branch October 7, 2024 20:08
johrstrom added a commit that referenced this pull request Oct 8, 2024
Rescue chown in case it fails so the upload completes as successful.
johrstrom added a commit that referenced this pull request Oct 8, 2024
backport - rescue chown in case it fails (#3856)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chown can fail in upload
2 participants