Summary: | DefaultServlet directory listings for aliased directories do not seem to work | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | Daniel Mikusa <dmikusa> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | P2 | ||
Version: | 7.0.30 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: |
Patch to DefaultServlet to workaround the error.
Updated patch, works with BaseDirContext and FileDirContext |
Description
Daniel Mikusa
2012-09-11 20:28:09 UTC
Created attachment 29357 [details]
Patch to DefaultServlet to workaround the error.
I was able to work around this error with a slight modification to the DefaultServlet code. Not sure if this is the best solution, but it seems to work without breaking anything so I'm attaching it here.
The proposed patch fixes the symptom rather than the cause. The fix needs to be in BaseDirContext and other classes in the same package. Created attachment 29384 [details]
Updated patch, works with BaseDirContext and FileDirContext
The patch is not functionally correct for FileDirContext and still does not address the root cause. Issue include: - ignores WARDirContext - ignores 3rd party sub-classes - does not use correct priority for aliases This has been fixed in trunk and 7.0.x and will be included in 7.0.31 onwards. |