You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Alex Karasulu (JIRA)" <di...@incubator.apache.org> on 2006/02/06 22:37:57 UTC

[jira] Created: (DIRLDAP-88) Bad filter makes filter parser hang rather than throw an exception

Bad filter makes filter parser hang rather than throw an exception
------------------------------------------------------------------

         Key: DIRLDAP-88
         URL: http://issues.apache.org/jira/browse/DIRLDAP-88
     Project: Directory LDAP
        Type: Bug
    Reporter: Alex Karasulu


try simple malformed filter like 'blah' and see what happends: 

line 1:1: expecting LPAREN, found 'blah' 

This is printed out to system.err and no exception results.  This is not good because it can hang indefinately.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (DIRSERVER-177) Bad filter makes filter parser hang rather than throw an exception

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-177?page=all ]

Alex Karasulu reassigned DIRSERVER-177:
---------------------------------------

    Assignee: Alex Karasulu

> Bad filter makes filter parser hang rather than throw an exception
> ------------------------------------------------------------------
>
>                 Key: DIRSERVER-177
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-177
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>            Reporter: Alex Karasulu
>         Assigned To: Alex Karasulu
>
> try simple malformed filter like 'blah' and see what happends: 
> line 1:1: expecting LPAREN, found 'blah' 
> This is printed out to system.err and no exception results.  This is not good because it can hang indefinately.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DIRSERVER-177) Bad filter makes filter parser hang rather than throw an exception

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-177?page=all ]

Alex Karasulu updated DIRSERVER-177:
------------------------------------

    Component: ldap

> Bad filter makes filter parser hang rather than throw an exception
> ------------------------------------------------------------------
>
>          Key: DIRSERVER-177
>          URL: http://issues.apache.org/jira/browse/DIRSERVER-177
>      Project: Directory ApacheDS
>         Type: Bug
>   Components: ldap
>     Reporter: Alex Karasulu

>
> try simple malformed filter like 'blah' and see what happends: 
> line 1:1: expecting LPAREN, found 'blah' 
> This is printed out to system.err and no exception results.  This is not good because it can hang indefinately.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (DIRSERVER-177) Bad filter makes filter parser hang rather than throw an exception

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-177?page=all ]

Alex Karasulu closed DIRSERVER-177.
-----------------------------------

    Resolution: Fixed

I think this was fixed a while back.  Sorry guys this escaped me.  I did not know it was out there.  I allways like to provide status :).    

> Bad filter makes filter parser hang rather than throw an exception
> ------------------------------------------------------------------
>
>                 Key: DIRSERVER-177
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-177
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>            Reporter: Alex Karasulu
>         Assigned To: Alex Karasulu
>
> try simple malformed filter like 'blah' and see what happends: 
> line 1:1: expecting LPAREN, found 'blah' 
> This is printed out to system.err and no exception results.  This is not good because it can hang indefinately.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-177) Bad filter makes filter parser hang rather than throw an exception

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRSERVER-177?page=comments#action_12429843 ] 
            
Emmanuel Lecharny commented on DIRSERVER-177:
---------------------------------------------

ok, the issue is 4 months old, and we asked for more info, but didn't get some.

We may close this issue and reopen it if needed. wdyt ?

> Bad filter makes filter parser hang rather than throw an exception
> ------------------------------------------------------------------
>
>                 Key: DIRSERVER-177
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-177
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>            Reporter: Alex Karasulu
>
> try simple malformed filter like 'blah' and see what happends: 
> line 1:1: expecting LPAREN, found 'blah' 
> This is printed out to system.err and no exception results.  This is not good because it can hang indefinately.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-177) Bad filter makes filter parser hang rather than throw an exception

Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRSERVER-177?page=comments#action_12374628 ] 

Stefan Zoerner commented on DIRSERVER-177:
------------------------------------------

Is it possible to get more info on this? 

Within my test cases, I have some search operations here:
https://svn.apache.org/repos/asf/directory/trunks/testsuites/src/main/java/org/apache/ldap/testsuite/ldaptests/jndi/ops/search/IllegalSearchFilterTest.java
The class contains a test method testFiltersWithSyntaxErrors which expects an InvalidSearchFilterException in case of a filter like "This is no filter" or "blah". It works as expected for RC1, but it seems to me that it is the JNDI provider for LDAP on the client side causing the exception (no ApacheDS involved). 

How was the error achieved in detail? What does "try simple malformed filter" exactly means? command line tool like ldapsearch?

> Bad filter makes filter parser hang rather than throw an exception
> ------------------------------------------------------------------
>
>          Key: DIRSERVER-177
>          URL: http://issues.apache.org/jira/browse/DIRSERVER-177
>      Project: Directory ApacheDS
>         Type: Bug

>   Components: ldap
>     Reporter: Alex Karasulu

>
> try simple malformed filter like 'blah' and see what happends: 
> line 1:1: expecting LPAREN, found 'blah' 
> This is printed out to system.err and no exception results.  This is not good because it can hang indefinately.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira