directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DIRSHARED-36) Attribute type description schema parser uses integer for syntax length, should be BigInteger
Date Mon, 13 Dec 2010 11:56:07 GMT

     [ https://issues.apache.org/jira/browse/DIRSHARED-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Lecharny updated DIRSHARED-36:
---------------------------------------

    Fix Version/s:     (was: 0.9.20)
                   1.0.0-RC1

> Attribute type description schema parser uses integer for syntax length, should be BigInteger
> ---------------------------------------------------------------------------------------------
>
>                 Key: DIRSHARED-36
>                 URL: https://issues.apache.org/jira/browse/DIRSHARED-36
>             Project: Directory Shared
>          Issue Type: Bug
>    Affects Versions: 0.9.15
>            Reporter: Stefan Seelmann
>            Assignee: Stefan Seelmann
>             Fix For: 1.0.0-RC1
>
>
> The schema parser assumes that the syntax length of an attribute type description is
an integer. RFC4512 states that this is a number:
>     number  = DIGIT / ( LDIGIT 1*DIGIT )
> As an example, Novell eDirectory defines the following AT where the length is greather
then Integer.MAX_VALUE and so parsing fails:
> ( 2.16.840.1.113719.1.1.4.1.123 NAME 'certificateValidityInterval' SYNTAX 1.3.6.1.4.1.1466.115.121.1.27{4294967295}
SINGLE-VALUE X-NDS_NAME 'Certificate Validity Interval' X-NDS_LOWER_BOUND '60' X-NDS_UPPER_BOUND
'-1' X-NDS_NONREMOVABLE '1' )
> We should use a BigInteger and check that the number is positive.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message