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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • proton-c-0.28.0
    • python-binding
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: