You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Xavier Gagnon (Jira)" <ji...@apache.org> on 2023/04/20 21:35:00 UTC

[jira] [Created] (QPIDJMS-586) MalformedInputException when trying to decode a compressed message

Xavier Gagnon created QPIDJMS-586:
-------------------------------------

             Summary: MalformedInputException when trying to decode a compressed message
                 Key: QPIDJMS-586
                 URL: https://issues.apache.org/jira/browse/QPIDJMS-586
             Project: Qpid JMS
          Issue Type: Bug
          Components: qpid-jms-client
    Affects Versions: 1.7.0, 0.59.0
            Reporter: Xavier Gagnon


{code:java}
content-encoding:  gzip
content-type:      application/json; charset="utf-8"{code}
When receiving a message with a compressed body, the content-encoding is ignored when decoding the message. This results in the client trying to decode the message as a Text message using the content-type's charset, which eventually leads to a MalformedInputException.

The message should either be decompressed first before trying to decode it, or it should at least be decoded as a Bytes message so that we can handle the content-encoding ourselves.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org