Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7766

[Java Broker] [Derby Store] Unsigned byte type should be used when reading stored message metada type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • qpid-java-6.1, qpid-java-6.1.1, qpid-java-6.1.2
    • None
    • None

    Description

      Meta data type is read into variable of type byte in current implementation of AbstractJDBCMessageStore#getMetaData. As result, the type values above 127 are read as negative values causing ArrayIndexOutOfBoundsException on invocation of MessageMetaDataTypeRegistry#fromOrdinal. Unsigned byte type should be used when reading stored message meatada type.

      This defect prevents the recovery of "flowed to disk" messages published with REST API or AMQP management, because metadata type for such messages is 255 which is turned into -1 when signed byte is used.

      Attachments

        Activity

          People

            orudyy Alex Rudyy
            orudyy Alex Rudyy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: