EAP 7 returns 404s for any static content served from a directory starting with WEB-INF or META-INF
Environment
- JBoss Enterprise Application Platform (EAP) 7.x
Issue
- Our application serves static content from some directories that start with
WEB-INForMETA-INF(such asWEB-INFOOBARorMETA-INFOOBAR). After moving to EAP 7, we now get 404s for any of this content. This worked previously on EAP 6 or Tomcat.
Resolution
- Upgrade to EAP 7.4.1+
Root Cause
- This content is not included.UNDERTOW-1898
- This content is not included.JBEAP-22026
- This content is not included.JBEAP-22025
- The DefaultServlet is preventing exposure of any content from
WEB-INForMETA-INFbut this goes too far and blocks content from any directory name starting with those strings.
SBR
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.