Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-92817

QMqttTopicFilter also matches topics just starting with the filter name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15, 6.0, 6.1
    • Fix Version/s: None
    • Component/s: MQTT
    • Labels:
      None

      Description

      QMqttTopicFilter{QLatin1String("x/#")}.match(QLatin1String("xy/foo"))
      

      evaluates to true so when subscribing to a wildcard topic "x/#", one will also receive messages for topic "xy/foo". The same applies when using numbers as topic names, e.g. the topic filter "items/1/#" will match messages for topic "items/123/foo".

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            mkalinow Maurice Kalinowski
            Reporter:
            tobydox Tobias Junghans
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes