directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <directory-...@incubator.apache.org>
Subject [jira] Resolved: (DIRSNICKERS-114) ControlType are not stored as strings
Date Wed, 23 Nov 2005 13:42:37 GMT
     [ http://issues.apache.org/jira/browse/DIRSNICKERS-114?page=all ]
     
Emmanuel Lecharny resolved DIRSNICKERS-114:
-------------------------------------------

    Resolution: Fixed
     Assign To: Emmanuel Lecharny  (was: Alex Karasulu)

This was a side effect on my work on SPNEGO OID's.

The problem has been fixed changing the internal type of LdapControl form OID to LdapString.

The test has been added.

Another test has been fixed accordingly.

Thanks van !

> ControlType are not stored as strings
> -------------------------------------
>
>          Key: DIRSNICKERS-114
>          URL: http://issues.apache.org/jira/browse/DIRSNICKERS-114
>      Project: Directory ASN1
>         Type: Bug
>     Reporter: Emmanuel Lecharny
>     Assignee: Emmanuel Lecharny
>     Priority: Blocker

>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message