[
https://issues.apache.org/jira/browse/OAK-3563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
angela updated OAK-3563:
------------------------
Description: cloning from (was: the group and group-member sync code in
the {{DefaultSyncContext}} twice catches {{ClassCastException}} and swallows
exception situations, where a user is found, when actually a {{Group}} was
expected.
i would suggest to
- explicitly test the assumption wrt {{ExternalIdentity}} being a group
(instead of waiting for the exception)
- make use of {{UserManager.getAuthorizable(String, Class) to explicitly
retrieve a Group with a given ID, when this is actually expected. This method
will throws an {{AuthorizableTypeException}} if there exists a {{User}} with
that ID as thus properly raise the unexpected behavior instead of swallowing
with a log-warning.)
> Improve DefaultSyncContext
> --------------------------
>
> Key: OAK-3563
> URL: https://issues.apache.org/jira/browse/OAK-3563
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: auth-external
> Reporter: angela
> Assignee: Tobias Bocanegra
> Labels: technical_debt
> Attachments: OAK-3523_4.patch
>
>
> cloning from
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)