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

[protonj2] Message format cannot be set to 0 on outbound messages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • protonj2-1.0.0-M19
    • protonj2-1.0.0-M20
    • protonj2
    • None

    Description

      Setting the message format to 0 or keeping the default value results in a null value in the transfer frame.

      0 seems to be considered a special value in the code.

      This contradicts the Javadoc:

      This field MUST be specified for the first transfer of a multi-transfer message, if it is not set at the time of send of the first transfer the sender uses the AMQP default value of zero for this field.

      As well as the AMQP spec (section 2.7.5):

      This field MUST be specified for the first transfer of a multi-transfer message and can only be omitted for continuation transfers. It is an error if the message-format on a continuation transfer differs from the message-format on the first transfer of a delivery.

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            acogoluegnes Arnaud Cogoluègnes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: