You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2009/09/27 14:27:16 UTC

[jira] Commented: (DIRSHARED-36) Attribute type description schema parser uses integer for syntax length, should be BigInteger

    [ https://issues.apache.org/jira/browse/DIRSHARED-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760020#action_12760020 ] 

Emmanuel Lecharny commented on DIRSHARED-36:
--------------------------------------------

I would make it a long. First because it's a nonsense to store 2^64 bytes or more on any computer, and second because it's easier to manipulate than a BigInteger...

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