Issue Details (XML | Word | Printable)

Key: DIRSERVER-634
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Emmanuel Lecharny
Reporter: Stefan Zoerner
Votes: 0
Watchers: 0
Operations

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

Delete with illegal DN causes client to hang

Created: 05/Jun/06 11:42 PM   Updated: 25/Sep/07 10:02 PM
Return to search
Component/s: None
Affects Version/s: 1.0-RC3
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File DeletionWithIllegalNameTest.java 2006-06-06 12:04 AM Stefan Zoerner 2 kB
File DIRSERVER-634.ldif 2006-07-30 06:42 PM Stefan Zoerner 0.2 kB
Text File DIRSERVER-634.log 2006-07-30 06:44 PM Stefan Zoerner 111 kB
Environment:
Sun ONE Directory SDK for Java 4.1
ApacheDS 1.0 RC 3
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Microsoft Windows XP version 5.1 Service Pack 1

Resolution Date: 22/Aug/06 11:40 PM


 Description  « Hide
A delete operation with an invalid DN causes the client to hang. The expected result is LDAP error code 34 (INVALID_DN_SYNTAX) (preferred), or 32 (NO_SUCH_OBJECT). For instance I tried to delete DN "This is an illegal name,dc=example,dc=com" (no attribute name in RDN).

Unfortunately, I was not able to create this situation with JNDI. Its LDAP Provider seems to ignore such an operation, there is no Exception at all. A Java test case created with Sun ONE Directory SDK for Java caused the client to hang, and does not produce the result code expected. I'll attach it to this issue.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #433799 Tue Aug 22 23:35:13 UTC 2006 elecharny Fixed DIRSERVER-634 and merged the classes from 1.0-trunks to 1.1 trunks
Files Changed
MODIFY /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/del/DelRequestGrammar.java
ADD /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ResponseCarryingMessageException.java (from /directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/message/ResponseCarryingMessageException.java)
MODIFY /directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolProvider.java
MODIFY /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/MessageDecoder.java
ADD /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/ResponseCarryingException.java (from /directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/codec/ResponseCarryingException.java)
ADD /directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/DelITest.java (from /directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/DelITest.java)