[ 
https://issues.apache.org/jira/browse/ARTEMIS-568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15330836#comment-15330836
 ] 

ASF GitHub Bot commented on ARTEMIS-568:
----------------------------------------

GitHub user tabish121 opened a pull request:

    https://github.com/apache/activemq-artemis/pull/580

    ARTEMIS-568 Catch broken JMS selector expressions

    Enforce an EOF on the expression so the selector parser keeps going and
    catches the broken selector statement.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tabish121/activemq-artemis ARTEMIS-568

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/580.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #580
    
----
commit 5c29cc9a28b8dde1937c29cd8cd06c2d9def70f8
Author: Timothy Bish <[email protected]>
Date:   2016-06-14T23:05:27Z

    ARTEMIS-568 Catch broken JMS selector expressions
    
    Enforce an EOF on the expression so the selector parser keeps going and
    catches the broken selector statement.

----


> JMS Selector parsing will not fail if a valid selector is followed by invalid 
> text
> ----------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-568
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-568
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 1.3.0
>            Reporter: Timothy Bish
>            Assignee: Timothy Bish
>             Fix For: 1.4.0
>
>
> A JMS Selector which has a valid stem followed by invalid data will not cause 
> a failure, and the selector will be parsed an executed as if only the valid 
> stem were present.
> For example the selector
> {code}
> a = 1 AMD  b = 2
> {code}
> will be treated as if the selector was
> {code}
> a = 1
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to