Files
floci/src
Niels Kootstra db2a67f122 fix(dynamodb): size() of a Binary counts its bytes, not its base64 text (#5058)
* fix(dynamodb): size() of a Binary counts its bytes, not its base64 text

size() on a B attribute returned the length of the base64 text, so a
3-byte value had size 4 and conditions and filters such as
size(b) = :three gave the wrong answer. It now decodes the value first.

begins_with on binaries now decodes through the same helper, so a value
that is not base64 fails with a 400 SerializationException, as the
binary comparisons already did, instead of an uncaught 500.

* test(dynamodb): cover begins_with matching a valid binary prefix
2026-10-04 08:12:56 -04:00
..