-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Redis GET with byte[] as type leads to unmarshaling exception #28029
Comments
/cc @cescoffier, @gsmet, @machi1990 |
cescoffier
added a commit
to cescoffier/quarkus
that referenced
this issue
Sep 17, 2022
Initially, it relied on the JSON codec (encoding the byte arrays using base 64). This was breaking the compatibility with other libraries. Fix quarkusio#28029.
You are right. Can you try the PR I just opened? (#28036) |
@cescoffier Is there an easy way to try it? |
You would need to check out the Alternatively, you can try the snapshots, but it's not very reliable. |
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Sep 19, 2022
Initially, it relied on the JSON codec (encoding the byte arrays using base 64). This was breaking the compatibility with other libraries. Fix quarkusio#28029. (cherry picked from commit 4a2546e)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Sep 20, 2022
Initially, it relied on the JSON codec (encoding the byte arrays using base 64). This was breaking the compatibility with other libraries. Fix quarkusio#28029. (cherry picked from commit 4a2546e)
igorregis
pushed a commit
to igorregis/quarkus
that referenced
this issue
Oct 16, 2022
Initially, it relied on the JSON codec (encoding the byte arrays using base 64). This was breaking the compatibility with other libraries. Fix quarkusio#28029.
igorregis
pushed a commit
to igorregis/quarkus
that referenced
this issue
Oct 16, 2022
Initially, it relied on the JSON codec (encoding the byte arrays using base 64). This was breaking the compatibility with other libraries. Fix quarkusio#28029.
igorregis
pushed a commit
to igorregis/quarkus
that referenced
this issue
Oct 16, 2022
Initially, it relied on the JSON codec (encoding the byte arrays using base 64). This was breaking the compatibility with other libraries. Fix quarkusio#28029.
igorregis
pushed a commit
to igorregis/quarkus
that referenced
this issue
Oct 17, 2022
Initially, it relied on the JSON codec (encoding the byte arrays using base 64). This was breaking the compatibility with other libraries. Fix quarkusio#28029.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I'm using this example https://quarkus.io/guides/redis-reference#storing-binary-data to get a value storing byte data and I'm getting this exception:
It seems that even if I'm using a byte[] type it tries to unmarshall the value as JSON.
In
io.quarkus.redis.datasource.codecs.Codecs.getDefaultCodecFor
it defaults toJsonCodec
, maybe we need a new codec doing nothing for byte[]?Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
Java 17
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.12.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: