Bug 56731

Summary: EL-Expression with escaped single quote leads to ELException
Product: Tomcat 7 Reporter: Christof Luick <c.luick>
Component: JasperAssignee: Tomcat Developers Mailing List <dev>
Severity: regression    
Priority: P2    
Version: 7.0.54   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Error page with stack trace from tomcat

Description Christof Luick 2014-07-16 19:47:18 UTC
Created attachment 31822 [details]
Error page with stack trace from tomcat

Hi Folks,

the following line in an 2.2-XML-JSP worked in Tomcat 7.0.39 but triggers an ELException in Tomcat 7.0.54 (see attachment for details):

<div title="${empty myVar ? '\'in quotes\'' : ''}">test</div>

I seems that the expression "'\'test\''" leads to the the problem because including it in parenthesis solves the problem in 7.0.54:

<div title="${empty myVar ? ('\'in quotes\'') : ''}">test</div>

The problem is that we have a lot of similar expressions containing escaped single quotes in our webapp.

Thanks for your help,
Christof Luick.
Comment 1 Konstantin Kolinko 2014-07-17 11:17:30 UTC
The issue is known and already fixed and mentioned in changelog.
The sample works with the current tc7.0.x

*** This bug has been marked as a duplicate of bug 56334 ***