Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-812

Infinite loop while parsing a bad filter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 1.0.1, 1.5.0
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

            akarasulu Alex Karasulu
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: