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

ProtonPython3 doesn't include body session in message if body is set to null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • proton-c-0.37.0
    • None
    • python-binding
    • None
    • Ubuntu 20.04 in WSL2, python3-qpid-proton/focal,now 0.37.0-1focal+qpid1 amd64, Python 3.8.10, broker is vromero/activemq-artemis running in docker

    Description

      According to page 82 of the specification

      • The body consists of one of the following three choices: one or more data sections, one or more amqp-sequence sections, or a single amqp-value section

      There should be at least one body section. However, when the body of the message is set to None (which probably should be encoded as amqp-value), there is not any body section found the in receiver side (ie. the payload doesn't come with any section that has the descriptor code 0x75, 0x76 or 0x77)

      A modified "simple_sender.py" example, which is attached, is used as the sender, and the payload bytes received by the receiver are w[ 0x0, 0x53, 0x70, 0x45, 0x0, 0x53, 0x73, 0x45 ] which contains one empty header section (0x70), one empty properties section (0x73) but no body section (any of 0x75, 0x76 or 0x77).

      Attachments

        1. simple_sender.py
          1 kB
          Minghua Wu

        Activity

          People

            Unassigned Unassigned
            minghuaw Minghua Wu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: