Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 92E34922A for ; Wed, 1 Feb 2012 12:13:36 +0000 (UTC) Received: (qmail 39549 invoked by uid 500); 1 Feb 2012 12:13:36 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 39443 invoked by uid 500); 1 Feb 2012 12:13:35 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 39435 invoked by uid 99); 1 Feb 2012 12:13:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 12:13:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pajbam@gmail.com designates 74.125.82.178 as permitted sender) Received: from [74.125.82.178] (HELO mail-we0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 12:13:27 +0000 Received: by werb12 with SMTP id b12so1177298wer.37 for ; Wed, 01 Feb 2012 04:13:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=uSnDYg6J20fVSg7Lke7xn90bbGIu+aQIv4akXt/UhQM=; b=VbNcjTSvw/+IdsbL4roTW3cGIRwZprVjXmQ48ADLjc+8SSjwX1RQLT6UIIQAR5Pdcc BHFlrr3T9ccw6e5beNnvfrA5Qv6Zl5EQ1NNhxTPRfqoIPQSDLAhJqbUrvFcs9+qcC3sz 8Kg6kr9S6W5UeU7Cd1yXwweQmPv5WtzAM+1V0= Received: by 10.216.138.102 with SMTP id z80mr1979460wei.38.1328098386179; Wed, 01 Feb 2012 04:13:06 -0800 (PST) Received: from [10.0.1.7] (def92-4-82-225-58-213.fbx.proxad.net. [82.225.58.213]) by mx.google.com with ESMTPS id q7sm44349557wix.5.2012.02.01.04.13.04 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Feb 2012 04:13:05 -0800 (PST) Sender: Pierre-Arnaud Marcelot Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1251.1) Subject: Re: connection.exists(Dn) is false although entry exists From: Pierre-Arnaud Marcelot In-Reply-To: <4F292163.5040807@gmail.com> Date: Wed, 1 Feb 2012 13:13:02 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <0F2831C9-13A5-4A8A-99FD-98E1C4F4DEDB@marcelot.net> References: <4F28CAB5.5050808@gmail.com> <60C70C0D-8C23-4E39-B798-7B8227AC9F35@marcelot.net> <4F290874.5080702@gmail.com> <4F292163.5040807@gmail.com> To: users@directory.apache.org X-Mailer: Apple Mail (2.1251.1) Christoph, I guess the 'cn=3DtestAttribute' entry is an instance of the = 'openengsb-namedObject' Object Class, right? Regards, Pierre-Arnaud On 1 f=E9vr. 2012, at 12:26, Christoph Czurda wrote: > Hi Pierre-Arnaud, >=20 > I attached the ldif file. Btw, I used the LdapNetworkConnection as > proposed in another thread. While it enabled my custom schema, it = still > gives the same result for this particular unit test. >=20 > If you have the time, feel free to comment on my schema. It is my = first > schema and I appreciate any feedback. >=20 > Kind regards, > Christoph >=20 > On 02/01/2012 11:34 AM, Pierre-Arnaud Marcelot wrote: >> Thanks Christoph, >>=20 >> I replicated the whole hierarchy of the DN you gave with standard = schema element and I have not been able to reproduce the issue. >>=20 >> As you mentioned in another mail, you're using a custom schema for = your own set of Attribute Types and Object Classes. >> Would you be allowed to share it with us (even in a private email, = not on the ML), so we can replicate the issue and found out more about = this strange issue? >>=20 >> Regards, >> Pierre-Arnaud >>=20 >>=20 >> On 1 f=E9vr. 2012, at 10:40, Christoph Czurda wrote: >>=20 >>> On 02/01/2012 10:34 AM, Pierre-Arnaud Marcelot wrote: >>>> Hi Christoph, >>>>=20 >>>> Could we have a look at the full DN you're using? >>> Sure, here it is: >>> = cn=3DtestAttribute,ou=3Dattributes,cn=3DtestUser,ou=3Dusers,ou=3Duserdata,= dc=3Dopenengsb,dc=3Dorg >>>>=20 >>>> Thanks, >>>> Pierre-Arnaud >>>>=20 >>>> On 1 f=E9vr. 2012, at 06:16, Christoph Czurda wrote: >>>>=20 >>>>> Hello! >>>>>=20 >>>>> I came accross a strange issue in a unit test. (server ApacheDS = 2.0) >>>>>=20 >>>>> Testing connection.exists(Dn dn) returns false. >>>>> When I test the String overload with the same dn I get true. >>>>>=20 >>>>> The code can probably explain better than words: >>>>>=20 >>>>> Dn dn; >>>>> //dn is initialized with an existing Dn. >>>>>=20 >>>>> //this test passes: >>>>> assertThat(connection.exists(dn.getName()), is(true)); >>>>>=20 >>>>> //this fails. AssertionError: expected true, got false >>>>> assertThat(connection.exists(dn), is(true)); >>>>>=20 >>>>> How can that be? exists(Dn) works fine in other tests. >>>>>=20 >>>>> Maybe I should mention that I get lots of these messages: >>>>>=20 >>>>> 2012-02-01 05:56:00,730 [NioProcessor-2] WARN >>>>> org.apache.directory.shared.asn1.ber.Asn1Decoder - >>>>> ERR_00043_REMAINING_BYTES_FOR_DECODED_PDU The PDU has been fully = decoded >>>>> but there are still bytes in the buffer. >>>>>=20 >>>>> But they occur with almost every message sent to the server. Btw, = can I >>>>> get rid of them somehow? >>>>>=20 >>>>> Kind regards, >>>>> Christoph >>>>=20 >>=20 >