Details
Description
Note from user:
We came across this one while researching a concurrency issue. While this one doesn't affect us directly and hence I cannot test it (because in our specific configuration contextPath is always set to the same value within an instance of MainServlet) it will have problems in a scenario where there are multiple contextPaths. I have confirmed that multiple requests will overwrite each other in this scenario.
The fix essentially removes the instance value and operates on the Request object which is passed through to the FileLocator.
We came across this one while researching a concurrency issue. While this one doesn't affect us directly and hence I cannot test it (because in our specific configuration contextPath is always set to the same value within an instance of MainServlet) it will have problems in a scenario where there are multiple contextPaths. I have confirmed that multiple requests will overwrite each other in this scenario.
The fix essentially removes the instance value and operates on the Request object which is passed through to the FileLocator.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Use a ThreadLocal variable to carry the current context path.