From dev-return-11695-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Sat Apr 15 13:22:58 2006 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 35791 invoked from network); 15 Apr 2006 13:22:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Apr 2006 13:22:57 -0000 Received: (qmail 3681 invoked by uid 500); 15 Apr 2006 13:22:56 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 3637 invoked by uid 500); 15 Apr 2006 13:22:55 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 3621 invoked by uid 99); 15 Apr 2006 13:22:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Apr 2006 06:22:55 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Apr 2006 06:22:55 -0700 Received: from brutus (localhost.localdomain [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 63B5971429F for ; Sat, 15 Apr 2006 13:22:01 +0000 (GMT) Message-ID: <102718781.1145107321400.JavaMail.jira@brutus> Date: Sat, 15 Apr 2006 13:22:01 +0000 (GMT+00:00) From: "Stefan Zoerner (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRSERVER-177) Bad filter makes filter parser hang rather than throw an exception In-Reply-To: <948130301.1139261877049.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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