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

[#8181] Fix attachment blob integrity error #8182

Merged
merged 2 commits into from
Mar 28, 2024
Merged

Conversation

gbp
Copy link
Member

@gbp gbp commented Mar 28, 2024

Relevant issue(s)

Fixes #8181

What does this do?

Fix attachment blob integrity error

Why was this needed?

Error introduced in #8125 which meant the on disk attachment could be updated but the checksum wasn't which means ActiveStorage::IntegrityError can be raised. This happens when running the storage mirror task and probably at other times too.

Implementation notes

Change to the task only need to be temporary until attachments are mirrored.


[skip changelog] - not needed as fix for unreleased change

gbp added 2 commits March 28, 2024 09:16
We need to persist the attachment blob as the checksum and byte size can
change after masking.
Fix existing integrity errors preventing mirroring of attachments to the
secondary storage services.
@gbp gbp force-pushed the 8181-fix-blob-integrity-error branch from cf6a964 to 98fc493 Compare March 28, 2024 11:52
@gbp gbp merged commit 722c51e into develop Mar 28, 2024
3 checks passed
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.

ActiveStorage::IntegrityError when mirroring attachments
1 participant