You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2009/09/01 11:15:32 UTC

[jira] Created: (JEXL-90) Jexl parser allows invalid expressions, e.g. "a=1 b=2 3"

Jexl parser allows invalid expressions, e.g. "a=1 b=2 3"
--------------------------------------------------------

                 Key: JEXL-90
                 URL: https://issues.apache.org/jira/browse/JEXL-90
             Project: Commons JEXL
          Issue Type: Bug
            Reporter: Sebb
            Priority: Critical
             Fix For: 2.0


The current 2.0 branch (SVN rev 809337) includes changes to allow the final ";" to be omitted from statements, however the change also allows a script such as the following to pass:

a=1 b=2 3

The parser should insist on statement terminators, e.g.

a=1; b=2; 3

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (JEXL-90) Jexl parser allows invalid expressions, e.g. "a=1 b=2 3"

Posted by "Henri Biestro (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JEXL-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Biestro resolved JEXL-90.
-------------------------------

    Resolution: Fixed


URL: http://svn.apache.org/viewvc?rev=810445&view=rev
Log: 
JEXL-90: fix in Parser, enforce 2 expressions are separated by a semi-colon (';') in StatementExpression. 

Modified: 
    commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/Debugger.java 
    commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/Interpreter.java 
    commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/parser/Parser.jjt 
    commons/proper/jexl/branches/2.0/src/test/java/org/apache/commons/jexl/IssuesTest.java 

> Jexl parser allows invalid expressions, e.g. "a=1 b=2 3"
> --------------------------------------------------------
>
>                 Key: JEXL-90
>                 URL: https://issues.apache.org/jira/browse/JEXL-90
>             Project: Commons JEXL
>          Issue Type: Bug
>            Reporter: Sebb
>            Assignee: Henri Biestro
>            Priority: Critical
>             Fix For: 2.0
>
>
> The current 2.0 branch (SVN rev 809337) includes changes to allow the final ";" to be omitted from statements, however the change also allows a script such as the following to pass:
> a=1 b=2 3
> The parser should insist on statement terminators, e.g.
> a=1; b=2; 3

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.