Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.6.0, 2.0.0
-
None
Description
The ReadableBuffer API from proton-j provides methods for reading a string from the remaining readable bytes in the buffer and documents these methods should advance the read index to the limit on return. The Qpid JMS readable buffer isn't advancing the position as it passes the decoding off to a Netty toString call which does not advance the read index. This is masked in proton-j currently as all string decodes are done from slices of a buffer or in some cases a duplicate and the buffer slice is cast off afterwards without care for any remaining bytes. Should proton-j be updated to not rely on slices for every single string decode this breaks the codec.