directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seelmann (JIRA)" <j...@apache.org>
Subject [jira] Created: (DIRSHARED-36) Attribute type description schema parser uses integer for syntax length, should be BigInteger
Date Sat, 26 Sep 2009 18:43:15 GMT
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