Issue Details (XML | Word | Printable)

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

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

ControlType are not stored as strings

Created: 23/Nov/05 10:39 PM   Updated: 07/Feb/06 01:29 PM
Return to search
Component/s: asn1
Affects Version/s: pre-1.0
Fix Version/s: pre-1.0

Time Tracking:
Not Specified

Resolution Date: 23/Nov/05 10:41 PM


 Description  « Hide
Reported by Van Nhu today :

> Hi all,
>
> According to the RFC 2251, the "controlType" attribute
> of an LDAP Control "...MUST be a UTF-8 encoded
> dotted-decimal representation of an OBJECT IDENTIFIER
> which uniquely identifies the control". Essentially,
> this means that the "controlType" attribute is an
> OCTET STRING and should be treated as such.
>
> However, the Twix ASN1 codec is treating this
> attribute as an OBJECT IDENTIFIER. This results in
> incorrect decoding/decoding of LDAP Controls.
>
> I suggest that we change the type of the "controlType"
> attribute of the org.apache.asn1new.ldap.pojo.Control
> class from OID to LdapString to fix the problem. A
> patch, which includes a test for exposing the problem
> and validating the fix, is attached for your
> reference.
>
> With Regards,
> Van

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Emmanuel Lecharny made changes - 23/Nov/05 10:41 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Assignee Alex Karasulu [ akarasulu ] Emmanuel Lecharny [ elecharny ]
Emmanuel Lecharny made changes - 05/Jan/06 07:35 AM
Status Resolved [ 5 ] Closed [ 6 ]
Alex Karasulu made changes - 07/Feb/06 01:29 PM
Component/s asn1 [ 12310712 ]
Key DIRSNICKERS-114 DIRSERVER-50
Fix Version/s pre-1.0 [ 12310782 ]
Affects Version/s pre-1.0 [ 12310782 ]
Project Directory ASN1 [ 10517 ] ApacheDS [ 12310260 ]