Summary: | getResource() for directories started to return nulls instead of list of files that directory contains | ||
---|---|---|---|
Product: | Tomcat 9 | Reporter: | Konrad <kcichocki> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | regression | ||
Priority: | P2 | ||
Version: | 9.0.30 | ||
Target Milestone: | ----- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: | a test case that reproduces a bug |
Description
Konrad
2020-01-13 23:18:58 UTC
This is some custom behavior that worked by accident, getInputStream applies to files, not directories. This will probably be WONTFIX. I'll see how easy it is to restore the directory listing behaviour. It wasn't too bad. And as a nice side-effect it takes account of resourceJARS and packedWARs when caching is enabled. Fixed in: - master for 10.0.0.0-M1 onwards - 9.0.x for 9.0.31 onwards - 8.5.x for 8.5.51 onwards Unless we completely re-implement the JNDI resource handling from 7.0.x (not something I want to do) there is always going to be some edge case that isn't supported. At the moment the edge cases that are emerging are simple to implement. At some point we will reach the point we may reach the point where we decide the implementation is too complex. Whoa, that was quick, thank you very much! |