[
https://issues.apache.org/jira/browse/PROTON-1551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16147431#comment-16147431
]
ASF GitHub Bot commented on PROTON-1551:
----------------------------------------
GitHub user vkolomeyko opened a pull request:
https://github.com/apache/qpid-proton-j/pull/10
PROTON-1551: Fix the problem with binary content over 255 bytes in length
Also a unit added exposing the problem
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/corda/qpid-proton-j feature/PROTON-1551
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/qpid-proton-j/pull/10.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #10
----
commit f90d1f005fe34446ac16d996c32c59e0c5d649b0
Author: Viktor Kolomeyko <[email protected]>
Date: 2017-08-30T15:21:26Z
PROTON-1551: Write unit test exposing the problem
commit 100cf1d08d5ed0e2edb55195c9db7fc988db082b
Author: Viktor Kolomeyko <[email protected]>
Date: 2017-08-30T15:23:14Z
PROTON-1551: Fix the problem with binary content over 255 bytes in length
----
> Large Binary encoded incorrectly via data API
> ---------------------------------------------
>
> Key: PROTON-1551
> URL: https://issues.apache.org/jira/browse/PROTON-1551
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-j
> Affects Versions: proton-j-0.20.0
> Reporter: Rick Parker
> Fix For: proton-j-0.21.0
>
>
> I've hit a bug at
> {{org.apache.qpid.proton.codec.impl.BinaryElement.java:122}}, as far as I can
> tell.
> It writes out what should be an integer ({{putInt}}) as a byte ({{put}}) for
> lengths greater than 255 and thus blows up when reading back.
> {{java.lang.IllegalArgumentException: Binary data size 1982890499 is
> specified to be greater than the amount of data available (900)
> }}
> Would appreciate a rapid fix! Cheers.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]