Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4049

JSF myfaces unsynchronized access to a WeakHashMap

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.24, 2.2.10
    • 2.0.25, 2.1.19, 2.2.11
    • None
    • None

    Description

      WebContainer threads are hanging due to a thread safety issue in the underlying JSF 2.0 code. A non thread-safe WeakHashMap is being used in the getRelativePath method of the DefaultFacelet class. Apache JSF 2.0 code is not synchronizing on their usage of WeakHashMap in
      org.apache.myfaces.view.facelets.impl.DefaultFacelet.getRelativePath.

      In order to make the code thread-safe Collections.synchronizedMap method needs to be used.

      A patch has been provided.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            wtlucy Bill Lucy
            eduardobreijo Eduardo Breijo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment