You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Davide Giannella (JIRA)" <ji...@apache.org> on 2017/01/05 08:38:58 UTC

[jira] [Comment Edited] (OAK-4696) Improve logging for SyncHandler

    [ https://issues.apache.org/jira/browse/OAK-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15794831#comment-15794831 ] 

Davide Giannella edited comment on OAK-4696 at 1/5/17 8:37 AM:
---------------------------------------------------------------

[~anchela] could you please backport this to 1.4 and 1.2? Cut date is 9th Jan.


was (Author: edivad):
[~anchela] could you please backport this to 1.4? Cut date is 9th Jan.

> Improve logging for SyncHandler
> -------------------------------
>
>                 Key: OAK-4696
>                 URL: https://issues.apache.org/jira/browse/OAK-4696
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: auth-external
>    Affects Versions: 1.5.8
>            Reporter: Konrad Windszus
>            Assignee: angela
>              Labels: candidate_oak_1_2, candidate_oak_1_4
>             Fix For: 1.5.14
>
>
> In the {{ExternalLoginModule.syncUser}} the {{context.sync(..)}} is being called without evaluating the return value at all (https://github.com/apache/jackrabbit-oak/blob/trunk/oak-auth-external/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/ExternalLoginModule.java#L354). The return value should be logged to find out, which sync took place.
> Also I am wondering if it would make sense to do the {{root.commit()}} only conditionally in case the return value is not {{SyncResult.NOP}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)