Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.2
    • Fix Version/s: 1.8DR#2, 1.8
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Liferay
    • Workaround Exists:
      Yes
    • Workaround Description:
      Code modifications in ContextPathConcurrencyIssue.txt

      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.

        Activity

        Hide
        Mircea Toma added a comment -

        Use a ThreadLocal variable to carry the current context path.

        Show
        Mircea Toma added a comment - Use a ThreadLocal variable to carry the current context path.

          People

          • Assignee:
            Unassigned
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: