Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8432

camel-mqtt: MQTT wildcard ('+') subscription broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.14.1
    • 2.14.3, 2.15.0
    • camel-mqtt
    • None
    • Patch Available
    • Unknown

    Description

      MQTT single-level wildcards ("+" character) are broken within topic subscriptions. This is due to URL encoding/decoding that is done on the component URI, which results in the "+" being replaced with a space. I also tried with "%2B" instead of the "+" sign, which gave the same result.

      A search led me to CAMEL-8056, which mentions needing to override the useRawUri method to return true. I'm working on a patch and updated unit tests for this.

      Attachments

        1. 0001-CAMEL-8432-2.14.x.patch
          3 kB
          Mark Mindenhall
        2. 0001-CAMEL-8432-2.15.x.patch
          7 kB
          Mark Mindenhall

        Activity

          People

            njiang Willem Jiang
            mmindenhall Mark Mindenhall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: