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

Writing wrong filter in a QMF method causes the filter is ignored

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Auto Closed
    • Affects Version/s: 0.14
    • Fix Version/s: None
    • Component/s: QMF
    • Labels:
      None

      Description

      Invoking e.g. method for moving messages from a queue to another with an invalid filter like:

      (in qpid-tool)

      call 120 queueMoveMessages SrcQueue DstQueue 0

      {'qpid.subject':'key2'}

      will produce an error in qpidd log:

      2012-07-31 11:50:14 error Ignoring unrecognized message filter: '

      {qpid.subject:key2}

      '

      but the messages are moved from SrcQueue to DstQueue. So having an invalid filter in a QMF method raises an error log but otherwise the filter is ignored and method applied. And the method returns zero as usual.

      The correct way would be not performing the method, as invalid parameter has been supplied.

      See http://qpid.2158936.n2.nabble.com/Writing-wrong-filter-in-a-QMF-method-causes-the-filter-is-ignored-td7580393.html#none for a discussion on the topic.

        Attachments

        1. 0001-QMF-filters-on-queues.patch
          3 kB
          Pavel Moravec

          Activity

            People

            • Assignee:
              tross Ted Ross
              Reporter:
              pmoravec Pavel Moravec
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: