Summary: | Error validating empty tag that contains jsp:attribute in JSP documents in XML syntax | ||
---|---|---|---|
Product: | Tomcat 6 | Reporter: | Konstantin Kolinko <knst.kolinko> |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | regression | ||
Priority: | P2 | ||
Version: | 6.0.24 | ||
Target Milestone: | default | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: |
emptyTagWithAttribute_Xml.jspx
emptyTagWithAttribute_Jsp.jsp emptyTagWithSpaceAndComment_Xml.jspx |
Description
Konstantin Kolinko
2010-02-27 13:10:11 UTC
Created attachment 25066 [details]
emptyTagWithAttribute_Jsp.jsp
The same page in plain JSP syntax. It works.
It is a regression in the fix for bug47977. Looking at a fix now... Fixed in trunk (with a couple of test cases) and proposed for 6.0.x Fixed in 6.0 in r919354 and will be in 6.0.26 onwards. I tested the current 5.5 (that will be 5.5.29) and it is not affected by this issue. Created attachment 25736 [details] emptyTagWithSpaceAndComment_Xml.jspx One more regression due to bug47977 fix: If the empty tag contains a comment, Tomcat barks that "tag .. must be empty but is not". I am attaching a JSPX document that reproduces this issue. The steps to reproduce are the same as in Description of this issue. Reproducible in 6.0.28 and in the current trunk (thus released 7.0.0-beta is also affected). I tested 5.5.30 as well and it works correctly. I have review the EBNF in the JSP 2.2 spec and I can't see anything that would permit comments in a tag that should have an empty body. |