[ 
https://issues.apache.org/jira/browse/SLING-2966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Krapf updated SLING-2966:
------------------------------

    Attachment: sling_authenticator.patch

Attached a possible patch: synchronizing the whole serviceChanged() method. 
                
> Insufficient synchronization in SlingAuthenticator
> --------------------------------------------------
>
>                 Key: SLING-2966
>                 URL: https://issues.apache.org/jira/browse/SLING-2966
>             Project: Sling
>          Issue Type: Bug
>          Components: Authentication
>    Affects Versions: Auth Core 1.1.2
>            Reporter: Lars Krapf
>              Labels: authentication, sling
>         Attachments: sling_authenticator.patch
>
>
> In the serviceChanged method of SlingAuthenticator a service is removed and 
> subsequently re-added in case of a modification event. This can lead to 
> synchronization problems (e.g. remove, remove, add, add) if two threads 
> trigger this handler at the same time (e.g. duplication of CUG roots in the 
> holder-cache of the CQ CUG handler after activation of a page with alias).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to