parseLdapName assume, if not '=' character is found in the name argument, '=' is at index. It should be -1 or gets a special process. For now, parseLdapName("someuser") returns "omeuser", stripping the first character. This is a problem when using the NIS context factory, where result.getName() returns simply the username. As a consequence, store is unusable because it reacts badly when asked later to find the object "/users/omeuser" Proposed solution: if (name.indexOf("=")<0) return name; in the method
(In reply to comment #0) > parseLdapName assume, if not '=' character is found in the name argument, '=' > is at index. It should be -1 or gets a special process. > For now, parseLdapName("someuser") returns "omeuser", stripping the first > character. This is a problem when using the NIS context factory, where > result.getName() returns simply the username. As a consequence, store is > unusable because it reacts badly when asked later to find the object > "/users/omeuser" > > > Proposed solution: > if (name.indexOf("=")<0) return name; > in the method or comment out this portion of the code: if ( firstEqual < 0 ) { firstEqual = 0; }
Proposed solution to remove the 3 lines : if ( firstEqual < 0 ) { firstEqual = 0; } implemented. Can you please do a svn update and rebuild from the sources to check that it works ? Regards, Antoine