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

[c] normalize encoding of multiple="true" fields

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: proton-c-0.25.0
    • Fix Version/s: proton-c-0.26.0
    • Component/s: proton-c
    • Labels:
      None

      Description

      The AMQP spec defines some frame fields as "multiple".

      http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-types-v1.0-os.html#section-composite-type-representation

      "The multiple attribute of a field description controls whether multiple element values are permitted in the representation. A single element of the type specified in the field description is always permitted. Multiple values are represented by the use of an array where the type of the elements in the array is the type defined in the field definition. Note that a null value and a zero-length array (with a correct type for its elements) both describe an absence of a value and MUST be treated as semantically identical. "

      Proton accepts all legal values. This issue is to normalize values written by proton:

      • empty array becomes null
      • array of one element becomes a single value

      This is the most efficient encoding, and some clients (.NET) have problems with multiple fields that contain an empty array rather than a null.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aconway Alan Conway
                Reporter:
                aconway Alan Conway
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: