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
Field | Original Value | New Value |
---|---|---|
Attachment | ContextPathConcurrencyIssue.txt [ 11381 ] |
Salesforce Case | [50070000007CJ1P] |
Workaround Description | Code supplied in ContextPathConcurrencyIssue.txt | Code modifications in ContextPathConcurrencyIssue.txt |
Assignee | Mircea Toma [ mircea.toma ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #18004 | Mon Dec 08 13:08:31 MST 2008 | mircea.toma | |
Files Changed | ||||
![]() |
Status | Open [ 1 ] | Resolved [ 5 ] |
Fix Version/s | 1.8DR#2 [ 10142 ] | |
Resolution | Fixed [ 1 ] |
Fix Version/s | 1.8 [ 10161 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee | Mircea Toma [ mircea.toma ] |
Use a ThreadLocal variable to carry the current context path.