Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6073

Different instances of components after error forward

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.4.12, 5.5.3
    • 5.0
    • core
    • None
    • Tomcat 7.0.6, 7.0.42, 7.0.59, 6.0.37
    • Kromeriz 88
    • 3

    Description

      During tomcat forward to error page there exists two different instances of AggregationState and WebContext components.

      1.) MgnlContext.getAggregationState()
      The ContextFilter creates a new AggregationState when creating an new WebContext.

      2.) Components.getComponent(AggregationState.class)
      IoC (LocalScope) holds an instance of AggregationState in the request which is the old state before forwarding.

      E.g. MultiSiteFilter (per WebContext) and MultiSiteURI2RepositoryManager (per IoC) gets different instances of AggregationState.

      Additional the old aggregation state in IoC may hold old nodes (e.g. state.getMainContentNode()) which have an already closed jcr session.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rkovarik Roman Kovařík
                cmeier Christoph Meier
                Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD