Project: Tomcat
Bug 55262 Duplicate preludes and codas in same <jsp-property-group> are ignored
Reported: 2013-07-14 01:44:18 | Status: resolved fixed

If a <jsp-property-group> contains multiple <include-prelude> elements that happen to refer to the same file only one include is performed. The same applies to codas. This happens because WebXml stores these in a LinkedHashSet rather than a List. When multiple <jsp-property-group>s are combined, JspConfig uses a Vector and so preserves duplicates as required by the JSP spec. I have a test case demonstrating this but before committing a fix I would like confirmation that WebXml's behaviour is incorrect.

Files changed in fix:
java/org/apache/tomcat/util/descriptor/web/JspPropertyGroup.java test/org/apache/jasper/compiler/TestCompiler.java test/org/apache/jasper/servlet/TestJspCServletContext.java test/org/apache/tomcat/util/descriptor/web/TestJspPropertyGroup.java