Race condition when resetting the filter chain
----------------------------------------------
Key: MAGNOLIA-3473
URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3473
Project: Magnolia
Issue Type: Bug
Components: core, updatemechanism
Affects Versions: 4.4.1
Reporter: Tobias Mattsson
Assignee: Philipp Bärfuss
In MgnlMainFilter when the filter chain is reset to usethe 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------