Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2014

GlobalConfiguratorImpl - Reattach the cached RequestContext when current is null but cached RequestContext is not

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-beta-1
    • 2.0.0-beta-1
    • None
    • None

    Description

      In GlobalConfiguratorImpl._attachRequestContext(ExternalContext ec), if current RequestContext is null but cached RequestContext is not, reattach the cached one.

      This causes problem for cases like when a request is terminated due to runtime exception and the application defines its error page to handle it, so the same physical request is dispatched to the same servlet, but the original RequestContext was released while it was terminated. The request may go through JSF lifecycle again, but its RequestContext is null now, which is in a wrong state and causes exception. The cached RequestContext is for the same physical request, so it needs to be reattached to RequestStateMap.

      Attachments

        1. GlobalConfiguratorImpl-fix.patch
          0.9 kB
          hongbing wang

        Activity

          People

            btsulliv Blake Sullivan
            hongbing hongbing wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: