You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/04/10 00:41:24 UTC

[Bug 54821] New: Error trying to parse EL in JSP XML documents when isELIgnored = true

https://issues.apache.org/bugzilla/show_bug.cgi?id=54821

            Bug ID: 54821
           Summary: Error trying to parse EL in JSP XML documents when
                    isELIgnored = true
           Product: Tomcat 7
           Version: 7.0.39
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
          Assignee: dev@tomcat.apache.org
          Reporter: knst.kolinko@gmail.com
    Classification: Unclassified

I noted this issue while reviewing code for bug 54801.
Reproducible with current 7.0 = 7.0.39.

Steps to reproduce:
1. Put the attached "page3.jspx" and "page4.jspx" files into examples webapp.

Page 3:
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:directive.page isELIgnored="true"/>
${Hello, world!!}
</jsp:root>

Page 4:
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:directive.page isELIgnored="true"/>
${Hello, world!!
</jsp:root>

2. Start Tomcat
3. Access http://localhost:8080/examples/page3.jspx
This works as expected and prints "${Hello, world!!}"

4. Access http://localhost:8080/examples/page4.jspx
This fails with error 500,

org.apache.jasper.JasperException: /page4.jspx (line: 21, column: 12)
Unterminated ${ tag

* root cause *:
org.xml.sax.SAXParseException: Unterminated ${ tag
org.apache.jasper.compiler.JspDocumentParser.processChars(JspDocumentParser.java:538)
org.apache.jasper.compiler.JspDocumentParser.endElement(JspDocumentParser.java:610)
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54821] Error trying to parse EL in JSP XML documents when isELIgnored = true

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54821

--- Comment #2 from Konstantin Kolinko <kn...@gmail.com> ---
Created attachment 30171
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30171&action=edit
page4.jspx

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54821] Error trying to parse EL in JSP XML documents when isELIgnored = true

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54821

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Mark Thomas <ma...@apache.org> ---
Fixed in trunk and will be included in 7.0.40 onwards.
I turned the example JSP documents into unit tests.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54821] Error trying to parse EL in JSP XML documents when isELIgnored = true

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54821

--- Comment #1 from Konstantin Kolinko <kn...@gmail.com> ---
Created attachment 30170
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30170&action=edit
page3.jspx

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org