Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 95747 invoked from network); 28 Nov 2008 03:36:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Nov 2008 03:36:49 -0000 Received: (qmail 79746 invoked by uid 500); 28 Nov 2008 03:37:00 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 79703 invoked by uid 500); 28 Nov 2008 03:36:59 -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 79692 invoked by uid 99); 28 Nov 2008 03:36:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Nov 2008 19:36:59 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nrhope@gmail.com designates 209.85.198.224 as permitted sender) Received: from [209.85.198.224] (HELO rv-out-0506.google.com) (209.85.198.224) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Nov 2008 03:35:33 +0000 Received: by rv-out-0506.google.com with SMTP id g37so1179450rvb.25 for ; Thu, 27 Nov 2008 19:36:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=OiuYFGBaftXdthaMt+DYRsI/jsxQN3PElfa9heQ2yf0=; b=j5/o0MwEFZ7yvXGiXsTHgdNMB5PR86Ae6KNDkJunmg8L8XRhZc3/jayBq+dPJWnSM2 UJQ6VzEDzHOpMDBDRnv0q37ao02u2d8kt8S4/TegpX5pkzAboXsLfz5lLskYB3eI8XJw TbrSRn5/pJeu2JHeaqFKQjYAFihLz0y5VYY0E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=kh/EjAAT293jfvjE+qjerWQ1as9+hEfKDvINk8PhHOGvH6YDYGQQsdsEotWpGiO9yQ yMJc7tArm9+h88gtVdvOplmeoenDXpY7DvZtuOeX6KvgN+TfYx0IeKqTEVTQUoDazOjo DjqUnehn+bJdRKXITIEh/V1cbHPE4khCVhpgw= Received: by 10.142.134.17 with SMTP id h17mr852364wfd.284.1227843369901; Thu, 27 Nov 2008 19:36:09 -0800 (PST) Received: by 10.142.164.16 with HTTP; Thu, 27 Nov 2008 19:36:09 -0800 (PST) Message-ID: Date: Fri, 28 Nov 2008 14:36:09 +1100 From: "Norval Hope" To: "Apache Directory Developers List" Subject: Re: stability of AD trunk In-Reply-To: <492EB1BE.4000005@nextury.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <492EB1BE.4000005@nextury.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, On Fri, Nov 28, 2008 at 1:42 AM, Emmanuel Lecharny wrote: > > I have added a test with a PDU for this filter, and it decodes correctly. I > have also added a test in the filter parser to see if it parse correctly > this filter, and it does. I would like to see the sent PDU, I suspect there > might be a JNDI problem at this point. > Now that I can run the trunk code, I have been able to verify that neither the codec parsing problem nor the NPEs occur for it. Sorry for the distraction - like you I thought the codec hadn't changed much for a long time and therefore felt fairly sure that the problem would still be around on the trunk. The problem I saw related to the 0x30 SEQUENCE around the the substring assertion components, which was on the top of the stack when SearchRequest.unstackFilters() was called but this method Here is the output from my test (filter="(&(objectClass=nisNetgroup)(|(nisNetGroupTriple=a*a)(nisNetGroupTriple=\28*,acc1,*\29)))") which includes the PDU: 2008-11-28 14:25:14,953 68000 [pool-1-thread-6] (org.apache.directory.shared.ldap.codec.TwixDecoder:114) DEBUG - Decoding the PDU : 2008-11-28 14:25:14,953 68000 [pool-1-thread-6] (org.apache.directory.shared.ldap.codec.TwixDecoder:128) DEBUG - 0x30 0x81 0xAE 0x02 0x01 0x06 0x63 0x81 0x8B 0x04 0x09 0x6F 0x75 0x3D 0x73 0x79 0x73 0x74 0x65 0x6D 0x0A 0x01 0x02 0x0A 0x01 0x00 0x02 0x01 0x00 0x02 0x01 0x00 0x01 0x01 0x00 0xA0 0x60 0xA3 0x1A 0x04 0x0B 0x6F 0x62 0x6A 0x65 0x63 0x74 0x43 0x6C 0x61 0x73 0x73 0x04 0x0B 0x6E 0x69 0x73 0x4E 0x65 0x74 0x67 0x72 0x6F 0x75 0x70 0xA1 0x42 0xA4 0x1B 0x04 0x11 0x6E 0x69 0x73 0x4E 0x65 0x74 0x47 0x72 0x6F 0x75 0x70 0x54 0x72 0x69 0x70 0x6C 0x65 0x30 0x06 0x80 0x01 0x61 0x82 0x01 0x61 0xA4 0x23 0x04 0x11 0x6E 0x69 0x73 0x4E 0x65 0x74 0x47 0x72 0x6F 0x75 0x70 0x54 0x72 0x69 0x70 0x6C 0x65 0x30 0x0E 0x80 0x01 0x28 0x81 0x06 0x2C 0x61 0x63 0x63 0x31 0x2C 0x82 0x01 0x29 0x30 0x0D 0x04 0x0B 0x6F 0x62 0x6A 0x65 0x63 0x74 0x43 0x6C 0x61 0x73 0x73 0xA0 0x1B 0x30 0x19 0x04 0x17 0x32 0x2E 0x31 0x36 0x2E 0x38 0x34 0x30 0x2E 0x31 0x2E 0x31 0x31 0x33 0x37 0x33 0x30 0x2E 0x33 0x2E 0x34 0x2E 0x32 2008-11-28 14:25:14,953 68000 [pool-1-thread-6] (org.apache.directory.shared.ldap.codec.TwixDecoder:135) DEBUG - Decoded LdapMessage : LdapMessage message Id : 6 Search Request Base Object : 'ou=system' Scope : whole subtree Deref Aliases : never Deref Aliases Size Limit : no limit Time Limit : no limit Types Only : false Filter : '(&(objectClass=nisNetgroup)(|(a*a)((*,acc1,*))))' Attributes : objectclass Control Control type : '2.16.840.1.113730.3.4.2' Criticality : 'false' Note that the extra ()s around "((*,acc1,*))" aren't actually a problem but rather due to the toString() not requoting the \28 and \29 (which was one of the fixes in my patch for DIRSERVER-1247). Thanks Emmanuel and Pierre-Arnaud!