S3 DeleteObjects - Change in keys with XML characters #4824
debora-ito
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On January 10, 2024, we released a fix for a bug where calling S3
DeleteObjects
with a key that contains characters that need to be escaped in XML and that is encoded, would incorrectly delete the object with the decoded key instead. This fix may break customers who currently rely on the previous behavior, and encode such keys when callingDeleteObjects
.DeleteObject
works fine, this bug was only present inDeleteObjects
.Example:
decodedKey
="<Key>objectId</Key>"
encodedKey
="<Key>objectId</Key>"
doubleEncodedKey
="&lt;Key&gt;objectId&lt;/Key&gt"
Previous behavior:
Calling
DeleteObjects
withencodedKey
would delete the object with the keydecodedKey
.To properly delete the object with the key
encodedKey
, the workaround was to specifydoubleEncodedKey
as the key.New behavior:
Calling
DeleteObjects
withencodedKey
will delete the object with the keyencodedKey
.Calling
DeleteObjects
withdoubleEncodedKey
will delete the object with the keydoubleEncodedKey
.The fix was released as part of version
2.23.0
Beta Was this translation helpful? Give feedback.
All reactions