This issue has been created
There is 1 update.
 
 
LDAP / cid:jira-generated-image-avatar-b7177918-a196-4bd2-87ce-a21813842041 LDAP-168 Open

NPE on XWikiLDAPConnection#searchLDAP

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-faf642f6-932b-46a0-8c17-4cfb99cf08f0 Josué Tille created this issue on 29/Jul/26 16:21
 
Summary: NPE on XWikiLDAPConnection#searchLDAP
Issue Type: cid:jira-generated-image-avatar-b7177918-a196-4bd2-87ce-a21813842041 Bug
Affects Versions: 9.16.1
Assignee: Unassigned
Components: API
Created: 29/Jul/26 16:21
Priority: cid:jira-generated-image-static-major-7108110f-b711-426a-93d7-594a9f5a595d Major
Reporter: Josué Tille
Description:

Issue probably difficult to reproduce without a specific setup but it seem that when we have in the LDAP settings xwiki.authentication.ldap.follow_referrals=0 and we call XWikiLDAPConnection#searchLDAP we can end on a NPE with this following stacktrace:

2026-07-29 15:21:15,210 [http-nio-8080-exec-340 - https://domain.tld/xwiki/bin/view/XXX/LiveTableResults] DEBUG o.x.c.l.PagedLDAPSearchResults - Failed to call next value because it require a referral but referral following is disabled 
com.novell.ldap.LDAPReferralException: Referral
	at com.novell.ldap.LDAPSearchResults.next(LDAPSearchResults.java:253)
	at org.xwiki.contrib.ldap.PagedLDAPSearchResults.next(PagedLDAPSearchResults.java:185)
	at org.xwiki.contrib.ldap.XWikiLDAPConnection.searchLDAP(XWikiLDAPConnection.java:531)
	at org.xwiki.contrib.ldap.XWikiLDAPUtils.searchUserAttributesByUid(XWikiLDAPUtils.java:1222)
    ...
 
 

1 update

 
cid:jira-generated-image-avatar-faf642f6-932b-46a0-8c17-4cfb99cf08f0 Changes by Josué Tille on 29/Jul/26 16:21
 
Assignee: Josué Tille