Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-5104

Python Swig bindings do not expose Message properties in the same manner as the pure Python bindings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.22
    • 0.25
    • None
    • None

    Description

      With the pure Python bindings, message properties can be assigned using:

      In [3]: msg.properties
      Out[3]: {}

      In [4]: msg.properties["foo"] = "bar"

      In [5]: msg.properties
      Out[5]:

      {'foo': 'bar'}

      However, in the Swig python bindings this results in the property never being set. This is because the call to properties appears to be calling the underlying C++ code and returning a copy of the properties map:

      In [3]: msg.properties
      Out[3]: {}

      In [4]: msg.properties["foo"] = "bar"

      In [5]: msg.properties
      Out[5]: {}

      Attachments

        Activity

          People

            gsim Gordon Sim
            mcpierce Darryl Pierce
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: