Static resources are missing when jar does not have a directory entry #27624
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: regression
A bug that is also a regression
Milestone
The changes for #27538 include an optimization to filter out non-existing locations on startup. However, a jar may not have entries for directories, e.g.
static/foo.gif
exists butstatic/
does not, in which case the check for the existence ofclasspath:static/
fails and the location is filtered out. As indicated in #27538 (comment) this can be the case for externally created jars that are outside the control of an application. We need to improve the check or drop the optimization.The text was updated successfully, but these errors were encountered: