Issue Details (XML | Word | Printable)

Key: XWIKI-1654
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Ludovic Dubost
Reporter: Ludovic Dubost
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XWiki Core

Null pointer exception in LDAPAuthServiceImpl

Created: 23/Aug/07 12:48   Updated: 23/Aug/07 12:53
Component/s: Authentication and Rights Management
Affects Version/s: 1.1 M4
Fix Version/s: 1.1 RC1

Resolution Date: 23/Aug/07 12:53


 Description  « Hide

java.lang.NullPointerException
at com.xpn.xwiki.user.impl.LDAP.LDAPAuthServiceImpl.authenticate(LDAPAuthServiceImpl.java:51)
at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:195)
at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:95)
at com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:211)
at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3000)
at com.xpn.xwiki.user.impl.xwiki.XWi



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Ludovic Dubost added a comment - 23/Aug/07 12:53
Fixed in r4495 and r4496 in branch and trunk.
// Trim the username to allow users to enter their names with spaces before or after
        String username  = ldapusername.replaceAll(" ", "");

changed to

// Trim the username to allow users to enter their names with spaces before or after
        String username  = (ldapusername==null) ? null : ldapusername.replaceAll(" ", "");