-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
StreamEntry (XREAD) does not support binary because it uses Map<String, String> #3566
Comments
First of all, what is XGET? Secondly, there are |
Sorry, I meant XREAD. You are correct on the alternate XRANGE signature. But I am really using XREAD. Let me update the title and to clarify.... XREAD only is problematic. |
I see there are alternate signatures for xread as well. Let me see of those help. I found the StreamEntry ones first. Give me a few minutes to explore and will udpate. |
OK, |
StreamEntry uses a Map<String, String> for fields.
As a result, binary data which contains illegal utf-8 sequences get mangled.
Reproduce by using XADD with a key or value which contains an illegal utf-8 sequence like 0xc3 0x28.
Retrieve via XREAD.
Expected result -- API to get byte array instead of a String, which is lossy with illegal utf-8 sequences.
The text was updated successfully, but these errors were encountered: