https://bz.apache.org/bugzilla/show_bug.cgi?id=62662
Bug ID: 62662
Summary: Multithreaded JSP compilation generates invalid
web.xml
Product: Tomcat 8
Version: 8.5.33
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ----
The multi-threaded JSP compilation introduced in 8.5.33 with Bug 53492 can
create race conditions that lead to invalid web.xml (fragments) to be
generated.
Since access of output streams in `generateWebMapping` is not thread-safe, this
can cause mappings to be interleaved, like in this (real-life) example:
> <servlet-mapping>
>
> <servlet-name>org.apache.jsp.WEB_002dINF.jsp.admin.seoKeywordsCmsTable_jsp
> <servlet-mapping>
> <servlet-name></servlet-name>
>
> <url-pattern>org.apache.jsp.WEB_002dINF.jsp.admin.seo.seokeywordtable_jsp</servlet-name>
>
> <url-pattern>/WEB-INF/jsp/admin/seo/seoKeywordsCmsTable.jsp/WEB-INF/jsp/admin/seo/seokeywordtable.jsp</url-pattern>
> </servlet-mapping>
></url-pattern>
> </servlet-mapping>
Obviously, this causes an error on startup.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]