Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 99157 invoked from network); 10 Jan 2007 17:50:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jan 2007 17:50:39 -0000 Received: (qmail 2187 invoked by uid 500); 10 Jan 2007 17:50:45 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 2156 invoked by uid 500); 10 Jan 2007 17:50:45 -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 2145 invoked by uid 99); 10 Jan 2007 17:50:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jan 2007 09:50:45 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of akarasulu@gmail.com designates 66.249.82.229 as permitted sender) Received: from [66.249.82.229] (HELO wx-out-0506.google.com) (66.249.82.229) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jan 2007 09:50:35 -0800 Received: by wx-out-0506.google.com with SMTP id h31so193122wxd for ; Wed, 10 Jan 2007 09:50:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:organization:user-agent:mime-version:to:subject:references:in-reply-to:content-type:sender; b=mpL97iDzL/m+GlwQjxk2+quTw4mQvps30onVPfjOuFaLD72Eq/FVmjuMJhGkyaaHeu2XWR9OYyz1JeCaof5ASGesO/W66u5VunV5NRmw/9oBdHtIzNZ05XDAYHprGeViz/3BRudi+KEJRKVNW5gO/zisQm1Thw5qCOibtb6Nl00= Received: by 10.90.68.15 with SMTP id q15mr436900aga.1168451413535; Wed, 10 Jan 2007 09:50:13 -0800 (PST) Received: from ?172.16.1.7? ( [65.80.200.112]) by mx.google.com with ESMTP id 26sm74051153wrl.2007.01.10.09.50.12; Wed, 10 Jan 2007 09:50:12 -0800 (PST) Message-ID: <45A52791.8090408@apache.org> Date: Wed, 10 Jan 2007 12:51:13 -0500 From: Alex Karasulu Reply-To: akarasulu@apache.org Organization: Apache Software Foundation User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: Filter parsing problem References: <20070109011423.686CE10FB02F@herse.apache.org> In-Reply-To: <20070109011423.686CE10FB02F@herse.apache.org> Content-Type: multipart/mixed; boundary="------------060905020606040807080404" Sender: Alex Karasulu X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------060905020606040807080404 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Thanks Endi for catching and reporting this. Can you file a JIRA issue and provide a test case that catches this failure? We have been working on 1.0.x bug fixes and perhaps we can fix this soon for a 1.0.1 release at the end of this month. Thanks, Alex Endi S. Dewata wrote: > Hi, > > Someone reported a problem with the filter parsing: > > http://groups-beta.google.com/group/safehaus/browse_thread/thread/5100becc93 > 2fad8c > > I was able to reproduce the problem on ApacheDS 1.0.0: > > ldapsearch -h localhost -p 10389 -D uid=admin,ou=system -w secret -x > -b "dc=Example,dc=com" "(|(cn=a)(&(sn=b)(sn=c*)(sn=d)))" > > Here's the debug output: > > (org.apache.directory.server.ldap.support.SearchHandler.java:150) > > Message received : SearchRequest > baseDn : 'dc=Example,dc=com' > filter : '(| (cn=a) (& (sn=b) (sn=c*) ) (sn=d) ) ' > scope : whole subtree > typesOnly : false > no limit > Time Limit : no limit > Deref Aliases : never Deref Aliases > attributes : > > Notice that the position of the parenthesises has changed. > > Original filter: (|(cn=a)(&(sn=b)(sn=c*)(sn=d))) > Parsed filter : (|(cn=a)(&(sn=b)(sn=c*))(sn=d)) > > If the '*' is removed, it will work just fine. Similar problem happens if > the operators are switched: > > Original filter: (&(cn=a)(|(sn=b)(sn=c*)(sn=d))) > Parsed filter : (&(cn=a)(|(sn=b)(sn=c*))(sn=d)) > > I'm having problems building ApacheDS from the source code, so I can't check > whether this problem still exists in the latest code. Could someone verify > this? Has this problem been reported in JIRA? Thanks a lot. > > -- > Endi S. Dewata > > > --------------060905020606040807080404 Content-Type: text/x-vcard; charset=utf-8; name="akarasulu.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="akarasulu.vcf" begin:vcard fn:Alex Karasulu n:Karasulu;Alex org:Apache Software Foundation;Apache Directory adr:;;1005 N. Marsh Wind Way;Ponte Vedra ;FL;32082;USA email;internet:akarasulu@apache.org title:Member, V.P. tel;work:(904) 791-2766 tel;fax:(904) 808-4789 tel;home:(904) 808-4789 tel;cell:(904) 315-4901 note;quoted-printable:AIM: alexokarasulu=0D=0A= MSN: aok123@bellsouth.net=0D=0A= Yahoo!: alexkarasulu=0D=0A= IRC: aok=0D=0A= PGP ID: 1024D/4E1370F8 BBCC E8D8 8756 2D51 C3D4 014A 3662 F96F 4E13 70F8=0D=0A= x-mozilla-html:FALSE url:http://people.apache.org/~akarasulu version:2.1 end:vcard --------------060905020606040807080404--