[jboss-jira] [JBoss JIRA] Commented: (JBWEB-208) Failure to evaluate ternary operators in Expression Language(EL)

Jean-Frederic Clere (JIRA) jira-events at lists.jboss.org
Fri Aug 12 11:20:11 EDT 2011


    [ https://issues.jboss.org/browse/JBWEB-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620728#comment-12620728 ] 

Jean-Frederic Clere commented on JBWEB-208:
-------------------------------------------

fixed by r1806 (tested with r1806 + r1808).

> Failure to evaluate ternary operators in Expression Language(EL)
> ----------------------------------------------------------------
>
>                 Key: JBWEB-208
>                 URL: https://issues.jboss.org/browse/JBWEB-208
>             Project: JBoss Web
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Tomcat
>    Affects Versions: JBossWeb-2.1.10.GA 
>         Environment: RHEL 6 Workstation, JBoss EAP 5.1.0
>            Reporter: Musharraf Hussain
>            Assignee: Jean-Frederic Clere
>              Labels: el
>             Fix For: JBossWeb-2.1.12.GA
>
>         Attachments: TestWS.war
>
>
> This issue is regarding a support case [1] where JBoss throws the below given error while evaluating ternary operators in Expression Language(EL) written in JSP. I found this issue there in EAP 5.1.1 (JBoss Web 2.1.3.GA) as well but interestingly this issue does not occur in EAP 4.3.x (JBoss Web 2.0.0 GA CP05).
> I have attached a sample test case, which once you deploy and hit the application like this (http://localhost:8080/TestWS) it throws the following ERROR.
> 2011-07-27 12:34:51,197 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/TestWS].[jsp]] (http-127.0.0.1-8080-1) Servlet.service() for servlet jsp threw exception
> org.apache.el.parser.ParseException: Encountered " <ILLEGAL_CHARACTER> "\' "" at line 1, column 16.
> Was expecting one of:
> <INTEGER_LITERAL> ...
> <FLOATING_POINT_LITERAL> ...
> <STRING_LITERAL> ...
> "true" ...
> "false" ...
> "null" ...
> "(" ...
> ")" ...
> "!" ...
> "not" ...
> "empty" ...
> "-" ...
> <IDENTIFIER> ...
> at org.apache.el.parser.ELParser.generateParseException(ELParser.java:2142)
> at org.apache.el.parser.ELParser.jj_consume_token(ELParser.java:2024)
> ......
> As per the bug opened for the same issue faced in Apache Tomcat, as mentioned in the following URL [2], the issue has been fixed and the fix has been included in Apache Tomcat version 6.0.23 onwards.
> There exists a JIRA [3] where for similar issue we are rebasing to Version 6.0.21 , hence I am opening this fresh JIRA so that a patch could be provided for the existing users of EAP 5.x and also this change could be included into EAP 5.1.2 as well.
> [1] https://c.na7.visual.force.com/apex/Case_View?id=500A0000007BrQwIAK&sfdc.override=1
> [2] https://issues.apache.org/bugzilla/show_bug.cgi?id=48112
> [3] https://issues.jboss.org/browse/JBPAPP-6382

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list