Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-5281

Incorrect handling of unknown values in selectors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.8.0, 5.x
    • 5.11.0
    • None
    • None

    Description

      Due to JmsMessage specification :
      http://docs.oracle.com/javaee/1.4/api/javax/jms/Message.html
      There are rules how unknown Values evaluates.

      I found 4 violations of specificatoion:
      1) Equals expression "=".
      "unknownProp = 0" should evaluate to UNKNOWN.
      In AMQ it evaluates to FALSE instead.
      2) Not equals expression "<>".
      "unknownProp <> 0" should evaluate to UNKNOWN, it evaluates to FALSE instead.
      3) Or expression "or".
      "unknown or false" should evaluate to UNKNOWN. It evaluates to FALSE instead.
      4) And expression "and".
      "unknown and false" should evaluate to FALSE. It evaluates to UNKNOWN instead.

      Attachments

        Issue Links

          Activity

            People

              tabish Timothy A. Bish
              traylz Grigroy Sobko
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: