[ 
https://issues.apache.org/jira/browse/DIRSERVER-891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486099
 ] 

Stefan Seelmann commented on DIRSERVER-891:
-------------------------------------------

I also added the tests to ACIItemChekerTest and ACIItemParserTest. In 
ACIItemChekerTest they fail, in ACIItemParserTest they pass. So the parser and 
the checker behave different.

I saw that there are two grammars, ACIItem.g and ACIItemChecker.g. I assume the 
ACIItemChecker is optimized just to check whether the ACI is valid or not?


> ACIItemSyntaxChecker accepts incomplete or invalid ACI Items
> ------------------------------------------------------------
>
>                 Key: DIRSERVER-891
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-891
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Stefan Seelmann
>
> The ACIItemSyntaxChecker accepts incomplete or invalid ACI Items. 
> 1.) An ACI item with the following protected item isn't rejected: 
> "...attributeValue { must_be_a_name_value_pair }..."
> 2.) Incomplete ACIs like "{ identificationTag "id2" }" aren't rejected
> I add some commented test cases to ACIItemSyntaxCheckerTest.

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

Reply via email to