Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-997

MQTT wildcard "+" doesn't work properly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: MQTT
    • Labels:
      None

      Description

      Hi,

      using last master bits (so 2.0.0 snapshot) for the EnMasse project we tried to configure wildcards in the following way :

      <wildcard-addresses>
      <enabled>true</enabled>
      <delimiter>/</delimiter>
      <any-words>#</any-words>
      <single-word>+</single-word>
      </wildcard-addresses>

      The "#" wildcard seems to work fine but not the "+". For example, considering "mytopic" as address and using the Proton Python simple sender and receiver ...

      [root@localhost python]# python simple_recv.py -a amqp://172.17.0.9:5673/mytopic/+/bar -m 1

      [root@localhost python]# python simple_send.py -a amqp://172.17.0.9:5673/mytopic/foo/bar -m 1
      all messages confirmed

      no messages are got by the receiver.
      The same happens using the "+" at the end ...

      [root@localhost python]# python simple_recv.py -a amqp://172.17.0.9:5673/mytopic/bar/+ -m 1

      [root@localhost python]# python simple_send.py -a amqp://172.17.0.9:5673/mytopic/bar/foo -m 1
      all messages confirmed

      Instead, using "#" it works fine ...

      [root@localhost python]# python simple_recv.py -a amqp://172.17.0.9:5673/mytopic/bar/# -m 1

      {u'sequence': int32(1)}

      [root@localhost python]# python simple_send.py -a amqp://172.17.0.9:5673/mytopic/bar/foo -m 1
      all messages confirmed

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ppatierno Paolo Patierno
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: