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

[python] Selector string sent as illegal binary value if non-unicode string is used

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: proton-c-0.28.0
    • Component/s: python-binding
    • Labels:
      None

      Description

      If a selector is provided via a non-unicode string, an illegal binary value is sent on the wire. The selector filter type is explicitly defined as being a string typed value. Some AMQP servers (e.g. Artemis, ActiveMQ) reject or mishandle the illegal value, rightfully expecting to be sent a string.

      In Python 2.x, this is an easy mistake to make, as strings are non-unicode by default. The solution for the client to convert Python binary types to unicode before sending on the wire to the server.

        Attachments

          Activity

            People

            • Assignee:
              kpvdr Kim van der Riet
              Reporter:
              kpvdr Kim van der Riet
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: