Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2554

CompositeReadableBuffer read string API not advancing position index

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-j-0.33.10
    • proton-j-0.34.0
    • proton-j
    • None

    Description

      The ReadableBuffer API 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 composite readable buffer isn't advancing the position as it passes the bytes off to a CharsetDecoder as a raw array and doesn't complete the operation with a position(limit) call.  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. 

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            tabish Timothy A. Bish
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: