Issue Details (XML | Word | Printable)

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

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

Delete operation fails due to decoder failure to properly read DN in request

Created: 29/Aug/06 12:33 AM   Updated: 02/Oct/06 01:45 PM
Return to search
Component/s: asn1
Affects Version/s: 1.0-RC4
Fix Version/s: 1.5.0, 1.0-RC4

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works ldifs.tgz 2006-08-29 01:14 PM Alex Karasulu 1.02 MB
Environment:
SUN JVM 1.5.0_08
ApacheDS 1.0-RC4-SNAPSHOT

Resolution Date: 29/Aug/06 02:44 PM


 Description  « Hide
Standard delete requests with the OpenLDAP (ldapdelete) client has started to fail. I'm getting the following stack trace from ApacheDS:

[20:34:41] ERROR [org.apache.directory.shared.ldap.codec.del.DelRequestGrammar] - The DN to delete : dn: uid=user.1,dc=example,dc=com (0x64 0x6E 0x3A 0x20 0x75 0x69 0x64 0x3D 0x75 0x73 0x65 0x72 0x2E 0x31 0x2C 0x64 0x63 0x3D 0x65 0x78 0x61 0x6D 0x70 0x6C 0x65 0x2C 0x64 0x63 0x3D 0x63 0x6F 0x6D ) is invalid : Bad DN : dn: uid=user.1,dc=example,dc=com
[20:34:41] ERROR [org.apache.directory.shared.asn1.ber.Asn1Decoder] - The PDU is decoded, but we should have had more TLVs
[20:34:41] WARN [org.apache.directory.server.ldap.LdapProtocolProvider$LdapProtocolHandler] - [/127.0.0.1:47133] Unexpected exception forcing session to close: sending disconnect notice to client.
org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.directory.shared.ldap.message.MessageException: decoder failture: Truncated PDU. Some elements are lacking, accordingly to the grammar (Hexdump: 30 05 02 01 03 42 00)
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:168)
        at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:501)
        at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:51)
        at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:787)
        at org.apache.mina.filter.ThreadPoolFilter.processEvent(ThreadPoolFilter.java:718)
        at org.apache.mina.filter.ThreadPoolFilter$Worker.processEvents(ThreadPoolFilter.java:474)
        at org.apache.mina.filter.ThreadPoolFilter$Worker.run(ThreadPoolFilter.java:429)
Caused by: org.apache.directory.shared.ldap.message.MessageException: decoder failture: Truncated PDU. Some elements are lacking, accordingly to the grammar
        at org.apache.directory.shared.ldap.message.MessageDecoder.decode(MessageDecoder.java:231)
        at org.apache.mina.filter.codec.asn1.Asn1CodecDecoder.decode(Asn1CodecDecoder.java:52)
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:157)
        ... 6 more

I'm also getting the following output (error message) from ApacheDS on the clientside:

Delete Result: Invalid DN syntax (34)
Additional info: The DN to delete : dn: uid=user.1,dc=example,dc=com (0x64 0x6E 0x3A 0x20 0x75 0x69 0x64 0x3D 0x75 0x73 0x65 0x72 0x2E 0x31 0x2C 0x64 0x63 0x3D 0x65 0x78 0x61 0x6D 0x70 0x6C 0x65 0x2C 0x64 0x63 0x3D 0x63 0x6F 0x6D ) is invalid


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.