You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Biestro (JIRA)" <ji...@apache.org> on 2012/04/30 23:53:50 UTC

[jira] [Created] (JEXL-131) UnifiedJexl (2.1.x) / Jxlt (3.0) parsing may fail with NPE

Henri Biestro created JEXL-131:
----------------------------------

             Summary:  UnifiedJexl (2.1.x)  / Jxlt (3.0) parsing may fail with NPE
                 Key: JEXL-131
                 URL: https://issues.apache.org/jira/browse/JEXL-131
             Project: Commons JEXL
          Issue Type: Bug
    Affects Versions: 2.1
            Reporter: Henri Biestro
            Assignee: Henri Biestro
             Fix For: 2.1.2, 3.0


>From Clay Bruce email:
the offending code is the method startsWith which can be found at line 1345 in UnifiedJEXL.java.
Problem is that sequence is not tested to see if the index is available before trying to access it.

A source with lines starting with leading spaces will trigger the bug.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JEXL-131) UnifiedJexl (2.1.x) / Jxlt (3.0) parsing may fail with NPE

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JEXL-131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13430775#comment-13430775 ] 

Sebb commented on JEXL-131:
---------------------------

See also:

http://apache-commons.680414.n4.nabble.com/jexl-Unified-jexl-throws-exception-when-processing-white-space-in-file-tt4578778.html
                
>  UnifiedJexl (2.1.x)  / Jxlt (3.0) parsing may fail with NPE
> ------------------------------------------------------------
>
>                 Key: JEXL-131
>                 URL: https://issues.apache.org/jira/browse/JEXL-131
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Henri Biestro
>            Assignee: Henri Biestro
>             Fix For: 2.1.2, 3.0
>
>
> From Clay Bruce email:
> the offending code is the method startsWith which can be found at line 1345 in UnifiedJEXL.java.
> Problem is that sequence is not tested to see if the index is available before trying to access it.
> A source with lines starting with leading spaces will trigger the bug.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (JEXL-131) UnifiedJexl (2.1.x) / Jxlt (3.0) parsing may fail with NPE

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

Henri Biestro resolved JEXL-131.
--------------------------------

    Resolution: Fixed

Fixed in part of commit revision 1332806:

jexl2/pom.xml
jexl2/src/main/java/org/apache/commons/jexl2/Interpreter.java
jexl2/src/main/java/org/apache/commons/jexl2/JexlArithmetic.java
jexl2/src/main/java/org/apache/commons/jexl2/JexlEngine.java
jexl2/src/main/java/org/apache/commons/jexl2/JexlException.java
jexl2/src/main/java/org/apache/commons/jexl2/ObjectContext.java
>> 
jexl2/src/main/java/org/apache/commons/jexl2/UnifiedJEXL.java
>>
jexl2/src/main/java/org/apache/commons/jexl2/parser/ASTNumberLiteral.java
jexl2/src/test/java/org/apache/commons/jexl2/ArithmeticTest.java
jexl2/src/test/java/org/apache/commons/jexl2/ArrayLiteralTest.java
jexl2/src/test/java/org/apache/commons/jexl2/ExceptionTest.java
jexl2/src/test/java/org/apache/commons/jexl2/IssuesTest.java

                
>  UnifiedJexl (2.1.x)  / Jxlt (3.0) parsing may fail with NPE
> ------------------------------------------------------------
>
>                 Key: JEXL-131
>                 URL: https://issues.apache.org/jira/browse/JEXL-131
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Henri Biestro
>            Assignee: Henri Biestro
>             Fix For: 2.1.2, 3.0
>
>
> From Clay Bruce email:
> the offending code is the method startsWith which can be found at line 1345 in UnifiedJEXL.java.
> Problem is that sequence is not tested to see if the index is available before trying to access it.
> A source with lines starting with leading spaces will trigger the bug.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira