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 "angela (JIRA)" <ji...@apache.org> on 2015/09/30 15:47:04 UTC
[jira] [Comment Edited] (OAK-3311) Potential NPE in
syncAllExternalUsers() aborts the process
[ https://issues.apache.org/jira/browse/OAK-3311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14936844#comment-14936844 ]
angela edited comment on OAK-3311 at 9/30/15 1:46 PM:
------------------------------------------------------
some comments on the patch:
- it replaces {{<version>$\{project.version\}</version>}} by {{<version>1.0.19</version>}}. i think that's a left over and should not applied
- it just catches {{Exception}} in may places, which is IMHO pretty bad practise and not suited to address the NPE. proper annotation and defensive tests for possible null would be better.
- {{toString}} method unrelated to the issue in my opinion
- missing test-case verifying that the issue is actually valid and that the patch actually addresses it.
i think a little bit more work is needed here to have a proper fix for the issue at hand.
was (Author: anchela):
some comments on the patch:
- it replaces {{<version>${project.version}</version>}} by {{<version>1.0.19</version>}}. i think that's a left over and should not applied
- it just catches {{Exception}} in may places, which is IMHO pretty bad practise and not suited to address the NPE. proper annotation and defensive tests for possible null would be better.
- {{toString}} method unrelated to the issue in my opinion
- missing test-case verifying that the issue is actually valid and that the patch actually addresses it.
i think a little bit more work is needed here to have a proper fix for the issue at hand.
> Potential NPE in syncAllExternalUsers() aborts the process
> ----------------------------------------------------------
>
> Key: OAK-3311
> URL: https://issues.apache.org/jira/browse/OAK-3311
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: auth-external
> Affects Versions: 1.2.4, 1.3.4, 1.0.19
> Reporter: Tobias Bocanegra
> Assignee: Tobias Bocanegra
> Attachments: OAK-3311-1.0.19.patch
>
>
> The iteration over all users in {{syncAllExternalUsers()}} aborts if there is an uncaught NPE.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)