Issue Details (XML | Word | Printable)

Key: DIRSERVER-252
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Alex Karasulu
Reporter: Emmanuel Lecharny
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Stack trace overflow when trying to connect with a bad DN

Created: 05/Dec/05 05:01 PM   Updated: 24/Jun/06 08:43 PM
Return to search
Component/s: None
Affects Version/s: pre-1.0
Fix Version/s: 1.0-RC1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works stackTrace.log 2005-12-05 05:02 PM Emmanuel Lecharny 102 kB
Issue Links:
Cloners
 

Resolution Date: 03/Feb/06 09:14 PM


 Description  « Hide
When trying to Bind with a bad DN, I get a StackTraceOverflow exception.

I use uid=adminBad, for instance

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Emmanuel Lecharny made changes - 05/Dec/05 05:02 PM
Field Original Value New Value
Attachment stackTrace.log [ 12321120 ]
Emmanuel Lecharny added a comment - 07/Dec/05 12:09 PM
Sorry, Alex, but you are the only one who can easily fix this one ;)

Emmanuel Lecharny made changes - 07/Dec/05 12:09 PM
Assignee Alex Karasulu [ akarasulu ]
Emmanuel Lecharny added a comment - 07/Dec/05 12:12 PM
The problem arise when the server tries to create the matchedName that will be returned in the error message. Yhis is due to the fact that the matchedName method will do a authenticate(), and as the bad DN is the principal, this authenticate() will generate an error, so a matchedName will be created, and this is of course an infinite loop ;=)

Note : I just try to do a Bind with a non existing uid. Fortunatly, we get a StackOverflowException, but the server is still alive !

Emmanuel Lecharny added a comment - 09/Dec/05 04:54 AM
This problem is known, and is actually under heavy investigation.

Thanks for the report !

Emmanuel Lecharny made changes - 09/Dec/05 04:54 AM
Link This issue is cloned as DIRLDAP-79 [ DIRLDAP-79 ]
Emmanuel Lecharny added a comment - 21/Jan/06 01:36 AM
Raised to blocker

Emmanuel Lecharny made changes - 21/Jan/06 01:36 AM
Priority Critical [ 2 ] Blocker [ 1 ]
Alex Karasulu made changes - 03/Feb/06 04:56 AM
Status Open [ 1 ] In Progress [ 3 ]
Repository Revision Date User Message
ASF #374649 Fri Feb 03 12:12:53 UTC 2006 akarasulu (1) cleaned up authentication, (2) added bind, unbind intercepted methods (3) fixed DIREVE-314
Files Changed
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/jndi/ServerDirContext.java
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/interceptor/BaseInterceptor.java
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmDirectoryPartition.java
ADD /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/jndi/LdapJndiProperties.java (from /directory/sandbox/akarasulu/rc1refactor/apacheds/core/src/main/java/org/apache/ldap/server/jndi/LdapJndiProperties.java)
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/interceptor/NextInterceptor.java
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/DirectoryPartitionNexusProxy.java
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/DefaultDirectoryPartitionNexus.java
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/jndi/ServerContext.java
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/interceptor/InterceptorChain.java
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/interceptor/Interceptor.java
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/DirectoryPartition.java
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/jndi/ServerLdapContext.java
MODIFY /directory/trunks/apacheds/core/src/test/java/org/apache/ldap/server/interceptor/InterceptorChainTest.java
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/authn/AuthenticationService.java
ADD /directory/trunks/apacheds/core/src/test/java/org/apache/ldap/server/jndi/LdapJndiPropertiesTest.java (from /directory/sandbox/akarasulu/rc1refactor/apacheds/core/src/test/java/org/apache/ldap/server/jndi/LdapJndiPropertiesTest.java)
MODIFY /directory/trunks/apacheds/protocols/ldap/src/main/java/org/apache/ldap/server/protocol/support/UnbindHandler.java
MODIFY /directory/trunks/apacheds/protocols/ldap/src/main/java/org/apache/ldap/server/protocol/support/ExtendedHandler.java

Alex Karasulu added a comment - 03/Feb/06 09:14 PM
I think I fixed this one pretty much when doing cleanups. I cannot reproduce it anymore.

Committed revision 374649.

Please confirm otherwise we'll have to reopen this one.

Alex Karasulu made changes - 03/Feb/06 09:14 PM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Fix Version/s 1.0-RC1 [ 12310230 ]
Alex Karasulu made changes - 10/Feb/06 12:26 PM
Fix Version/s 1.0-RC1 [ 12310780 ]
Key DIREVE-314 DIRSERVER-252
Affects Version/s pre-1.0 [ 12310782 ]
Fix Version/s 1.0-RC1 [ 12310230 ]
Project Directory Server [ 10516 ] Directory ApacheDS [ 12310260 ]
Emmanuel Lecharny added a comment - 24/Jun/06 08:43 PM
I think it's fixed.

Emmanuel Lecharny made changes - 24/Jun/06 08:43 PM
Status Resolved [ 5 ] Closed [ 6 ]