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] Created: (DIRSERVER-1522) ACI parser has been too much 'relaxed'
Date Fri, 25 Jun 2010 09:09:54 GMT
ACI parser has been too much 'relaxed'
--------------------------------------

                 Key: DIRSERVER-1522
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1522
             Project: Directory ApacheDS
          Issue Type: Bug
    Affects Versions: 1.5.7
            Reporter: Emmanuel Lecharny
             Fix For: 2.0.0-RC1


We have relaxed the grammar a bit too much. At some point, it leads to some bad semantic.
An example :

ItemFirst, as described by X.501 :

itemFirst [0] SEQUENCE {
    protectedItems ProtectedItems,
    itemPermissions SET OF ItemPermission }

Our grammar :

ItemFirst :
    ID_itemFirst ( SP )* COLON ( SP )*
        OPEN_CURLY ( SP )*
            ( 
              protectedItems ( SP )*
                SEP ( SP )* itemPermissions
            | // relaxing
              itemPermissions ( SP )*
                SEP ( SP )* protectedItems
            )
        ( SP )* CLOSE_CURLY

It does not make sense to allow ItemPermissions to be put before the protectedItems.

It should not have an impact on the server to remove those relaxed parts.

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