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 "Julian Reschke (Jira)" <ji...@apache.org> on 2019/11/25 06:29:06 UTC

[jira] [Closed] (OAK-8700) ExternalIdentityConflictHandler prone to NPE

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

Julian Reschke closed OAK-8700.
-------------------------------

> ExternalIdentityConflictHandler prone to NPE
> --------------------------------------------
>
>                 Key: OAK-8700
>                 URL: https://issues.apache.org/jira/browse/OAK-8700
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: auth-external
>            Reporter: Angela Schreiber
>            Assignee: Angela Schreiber
>            Priority: Major
>             Fix For: 1.20.0
>
>
> {{ExternalIdentityConflictHandler}} will throw NPE in case value stored in the {{REP_LAST_SYNCED}} property cannot be parsed by {{ISO8601.parse}} (and returns null) as shows the following code:
> {code}
> Calendar o = parse(ours.getValue(Type.DATE));
> Calendar t = parse(theirs.getValue(Type.DATE));
> Calendar v = o.before(t) ? t : o;
> parent.setProperty(ours.getName(), v)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)