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

[Broker-J] Jms Selector Parsing - multiple AND's

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • qpid-java-broker-9.2.0
    • qpid-java-broker-9.2.1
    • Broker-J
    • None

    Description

      When parsing a selector with 3 boolean expressions AND'ed together, the last expression is not taken into account.

      I have attached a patch file from the latest Github version of the main branch to demostrate the problem.

      In short, having a selector that evaluates (trueExpression) AND (trueExpression) AND (falseExpression) evaluates to TRUE.

      Patch of JMSSelectorFilterSyntaxTest.java below.

      selectorSyntax.patch

       

      Attachments

        1. selectorSyntax.patch
          1 kB
          Kyrre

        Activity

          People

            Unassigned Unassigned
            kyrre Kyrre
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: