Bug 56409

Summary: A file called "\" causes StackOverflowError in tldScanResourcePaths during startup
Product: Tomcat 7 Reporter: Conrad Kostecki <Kostecki>
Component: Servlet & JSP APIAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 7.0.42   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Conrad Kostecki 2014-04-14 16:28:20 UTC
at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:366)
at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:398)
at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:398)
at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:398)
at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:398)
(... repeats a lot of times)

Steps to reproduce:
1) Create a file named "\" below WEB-INF in an own folder
2) Start Tomcat7
Comment 1 Mark Thomas 2014-04-17 11:43:19 UTC
For the record a similar issues exists in Tomcat 8. I'll take a look...
Comment 2 Mark Thomas 2014-04-17 15:47:34 UTC
Thanks for the report. This has been fixed in 7.0.x and 8.0.x and will be included in 7.0.54 and 8.0.6 onwards.