Skip to content

Fix removing attachments with numeric keys#113

Merged
atimin merged 3 commits intomainfrom
fix-integer-attachment-key
Mar 9, 2026
Merged

Fix removing attachments with numeric keys#113
atimin merged 3 commits intomainfrom
fix-integer-attachment-key

Conversation

@atimin
Copy link
Member

@atimin atimin commented Mar 9, 2026

Closes #

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • CHANGELOG.md has been updated (for bug fixes / features / docs)

What kind of change does this PR introduce?

Bug fix

What was changed?

  • Fixed IBucket::RemoveAttachments payload construction so attachment keys are compared as strings by casting &key in the $in condition.
  • Added an integration test that writes attachments with numeric-looking keys ("1", "2.5") and verifies they are removed correctly.

Related issues

N/A

Does this PR introduce a breaking change?

No.

Other information:

This resolves deletion failures when attachment keys look like numbers and the backend interprets uncast values with mismatched types.

@atimin atimin requested a review from a team March 9, 2026 19:16
@atimin atimin merged commit 164234b into main Mar 9, 2026
14 checks passed
@atimin atimin deleted the fix-integer-attachment-key branch March 9, 2026 19:53
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.

2 participants