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: filemanager e_tag quoting #399

Merged
merged 2 commits into from
Jul 9, 2024
Merged

fix: filemanager e_tag quoting #399

merged 2 commits into from
Jul 9, 2024

Conversation

mmalenic
Copy link
Member

@mmalenic mmalenic commented Jul 9, 2024

Fixes #397

Turns out that e_tags should be double quoted to distinguish between two different kinds of e_tags, weak and strong. An e_tag is quoted when received from an SDK HeadObjectOutput. However, EventBridge/SQS sends S3 events with unquoted e_tags, resulting in a mismatch when ingesting events.

Changes

  • Check/modify all e_tags to ensure that they are quoted before ingesting events.
  • Move the default_version_id to messages.rs.

@mmalenic mmalenic self-assigned this Jul 9, 2024
@mmalenic mmalenic added filemanager an issue relating to the filemanager fix labels Jul 9, 2024
Copy link
Member

@brainstorm brainstorm left a comment

Choose a reason for hiding this comment

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

Wow, nice catch!

@mmalenic mmalenic merged commit 3294cab into main Jul 9, 2024
5 checks passed
@mmalenic mmalenic deleted the fix/filemanager-etag branch July 9, 2024 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filemanager an issue relating to the filemanager fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

filemanager: s3_object e_tag is surrounded by quotes
3 participants