[ 
https://issues.apache.org/jira/browse/PROTON-2809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17828092#comment-17828092
 ] 

ASF subversion and git services commented on PROTON-2809:
---------------------------------------------------------

Commit b5bc7feb091804c497582abd0179d7d06cea144b in qpid-protonj2's branch 
refs/heads/main from Timothy Bish
[ https://gitbox.apache.org/repos/asf?p=qpid-protonj2.git;h=b5bc7feb ]

PROTON-2809 Ensure codec and buffers handle null Binary data payloads

Ensure that an null Data section encoding is encoded and decoded
consistently and fix issue in composite buffer decoding empty Binary
bodies when split at end of buffer.

> [protonj2] Exception when composite buffer reads empty Data section payload
> ---------------------------------------------------------------------------
>
>                 Key: PROTON-2809
>                 URL: https://issues.apache.org/jira/browse/PROTON-2809
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: protonj2
>    Affects Versions: protonj2-1.0.0-M19
>            Reporter: Timothy A. Bish
>            Assignee: Timothy A. Bish
>            Priority: Major
>             Fix For: protonj2-1.0.0-M20
>
>
> When reading a transfer payload and attempting to decode, if the payload was 
> split across frames and is carried in a composite buffer an exception can 
> occur if the Data section in the body carries a null instead of an encoded 
> Binary type.
> {code:java}
> Caused by: org.apache.qpid.protonj2.client.exceptions.ClientException:
> Index 1 out of bounds for length 1
> at
> org.apache.qpid.protonj2.client.impl.ClientExceptionSupport.createNonFatalOrPassthrough(
> ClientExceptionSupport.java:103)
> at org.apache.qpid.protonj2.client.impl.ClientMessageSupport.decodeMessage(
> ClientMessageSupport.java:170)
> at org.apache.qpid.protonj2.client.impl.ClientMessageSupport.decodeMessage(
> ClientMessageSupport.java:152)
> at org.apache.qpid.protonj2.client.impl.ClientDelivery.message(
> ClientDelivery.java:79)
> at
> com.thisisnumero.smartagent.gateway.inbound.sources.background.amqp.AMQPMessageConsumerImpl.internalConsumeMessages(
> AMQPMessageConsumerImpl.java:53)
> ... 4 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds
> for length 1
> at
> org.apache.qpid.protonj2.buffer.impl.ProtonCompositeBufferImpl.findChunkWithIndex(
> ProtonCompositeBufferImpl.java:1530)
> at org.apache.qpid.protonj2.buffer.impl.ProtonCompositeBufferImpl.copyInto(
> ProtonCompositeBufferImpl.java:387)
> at
> org.apache.qpid.protonj2.codec.decoders.messaging.DataTypeDecoder.readValue(
> DataTypeDecoder.java:85)
> at
> org.apache.qpid.protonj2.codec.decoders.messaging.DataTypeDecoder.readValue(
> DataTypeDecoder.java:40)
> at org.apache.qpid.protonj2.codec.decoders.ProtonDecoder.readObject(
> ProtonDecoder.java:192)
> at org.apache.qpid.protonj2.client.impl.ClientMessageSupport.decodeMessage(
> ClientMessageSupport.java:168) {code}



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

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

Reply via email to