[
https://issues.apache.org/jira/browse/DIRSERVER-812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Karasulu reassigned DIRSERVER-812:
---------------------------------------
Assignee: Alex Karasulu
> Infinite loop while parsing a bad filter
> ----------------------------------------
>
> Key: DIRSERVER-812
> URL: https://issues.apache.org/jira/browse/DIRSERVER-812
> Project: Directory ApacheDS
> Issue Type: Bug
> Reporter: Emmanuel Lecharny
> Assigned To: Alex Karasulu
> Priority: Blocker
> Fix For: 1.0.1, 1.5.0
>
>
> If we try to parse a bad filter ( for instance, without parenthesis ), the
> parser is entering an ininite loop.
> Here is a test case to show this behavior :
> public void testBadEqualsFilter() throws IOException, ParseException
> {
> try
> {
> SimpleNode node = ( SimpleNode ) parser.parse( "ou = people" );
>
> // The parsing should fail
> fail();
> }
> catch( ParseException pe )
> {
> assertTrue( true );
> }
> }
> Simply copy/paste it into
> org.apache.directory.shared.ldap.filter.FilterParserImplTest in shared-ldap
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira