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

Stefan Egli updated OAK-3396:
-----------------------------
    Attachment: OAK-3396.patch.v2

Attached [^OAK-3396.patch.v2] that fixes both createUser and createGroups with 
the correct result code, plus it contains a testListUsersWithMissingUid which 
tests the createUser case. Note that it also fiddles with the pom.xml, but that 
is just to be able to patch based on an oak 1.0.18 (and not meant to go into 
svn obviously)
[~tripod], I could not readily find a solution how to test the createGroups 
case: when importing a 'faulty' ldif without 'cn' the import already fails... 
if you have any idea how to test the createGroups case that would be great

> NPE during syncAllExternalUsers in LdapIdentityProvider.createUser
> ------------------------------------------------------------------
>
>                 Key: OAK-3396
>                 URL: https://issues.apache.org/jira/browse/OAK-3396
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: auth-ldap
>    Affects Versions: 1.0.18
>            Reporter: Stefan Egli
>            Assignee: Tobias Bocanegra
>            Priority: Minor
>             Fix For: 1.0.20
>
>         Attachments: OAK-3396.patch, OAK-3396.patch.v2
>
>
> When executing the JMX method syncAllExternalUsers the following NPE has been 
> encountered. This likely indicates that - for a particular user - there is no 
> attribute '{{uid}}':
> {code}
> java.lang.NullPointerException
> at 
> org.apache.jackrabbit.oak.security.authentication.ldap.impl.LdapIdentityProvider.createUser(LdapIdentityProvider.java:667)
> at 
> org.apache.jackrabbit.oak.security.authentication.ldap.impl.LdapIdentityProvider.access$000(LdapIdentityProvider.java:88)
> at 
> org.apache.jackrabbit.oak.security.authentication.ldap.impl.LdapIdentityProvider$1.getNext(LdapIdentityProvider.java:281)
> at 
> org.apache.jackrabbit.oak.security.authentication.ldap.impl.LdapIdentityProvider$1.getNext(LdapIdentityProvider.java:273)
> at 
> org.apache.jackrabbit.commons.iterator.AbstractLazyIterator.hasNext(AbstractLazyIterator.java:39)
> at 
> org.apache.jackrabbit.oak.spi.security.authentication.external.impl.jmx.SyncMBeanImpl$Delegatee.syncAllExternalUsers(SyncMBeanImpl.java:245)
> at 
> org.apache.jackrabbit.oak.spi.security.authentication.external.impl.jmx.SyncMBeanImpl.syncAllExternalUsers(SyncMBeanImpl.java:426)
> {code}



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

Reply via email to