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

Race condition when resetting the filter chain

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Neutral
    • None
    • 4.4.1
    • core, updatemechanism
    • None

    Description

      In MgnlMainFilter when the filter chain is reset to use the normal ui requests can enter the install/update -ui when it is being destroyed / has been destroyed and enter the normal filter chain before the init() methods have been called.

      To fix it we need to fully initialize the new filter, swap the instances, and then destroy the previous instance.

      Since the instance can be swapped while being used access to it should be synchronized. Should use the minimal amount of synchronization possible. Like a volatile field or java.util.concurrent.AtomicReference.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              tmattsson Tobias Mattsson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD