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-812) Infinite loop while parsing a bad filter
Date Fri, 05 Jan 2007 18:42:27 GMT
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
            Priority: Blocker


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

        

Mime
View raw message