Return-Path:
Delivered-To: apmail-directory-dev-archive@www.apache.org
Received: (qmail 16852 invoked from network); 18 Feb 2008 15:19:07 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2)
by minotaur.apache.org with SMTP; 18 Feb 2008 15:19:07 -0000
Received: (qmail 42693 invoked by uid 500); 18 Feb 2008 15:19:01 -0000
Delivered-To: apmail-directory-dev-archive@directory.apache.org
Received: (qmail 42658 invoked by uid 500); 18 Feb 2008 15:19:01 -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 42647 invoked by uid 99); 18 Feb 2008 15:19:00 -0000
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2008 07:19:00 -0800
X-ASF-Spam-Status: No, hits=3.2 required=10.0
tests=FS_REPLICA,HTML_MESSAGE,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: local policy)
Received: from [194.75.234.2] (HELO smtpgate.saa-cons.co.uk) (194.75.234.2)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2008 15:18:28 +0000
To: dev@directory.apache.org
Subject: getAttributes( nm,
null ) returns empty Attributes if replication enabled?
MIME-Version: 1.0
Date: Mon, 18 Feb 2008 15:18:43 +0000
Message-ID:
From: Simon.Temple@saaconsultants.com
Content-Type: multipart/alternative;
boundary=alternative_NB2620_23915
X-WatchGuard-IPS: message checked
X-Virus-Checked: Checked by ClamAV on apache.org
--alternative_NB2620_23915
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
A simple test with an embedded DS:
public String testNullAttributeGet() throws NamingException { Na=
me nm =3D new LdapName( "uid=3Dadmin,ou=3Dsystem" ); Attributes atts =
=3D new InitialDirContext( createContextEnv( ) ).getAttributes( nm, null=
); return atts.toString();}
Without replication:
Attribute id : 'sn', Values : ['administrator']
Attribute id : 'objectClass', Values : ['person', 'organizationalPerson'=
, 'inetOrgPerson', 'top']
Attribute id : 'cn', Values : ['system administrator']
Attribute id : 'creatorsName', Values : ['uid=3Dadmin,ou=3Dsystem']
Attribute id : 'createTimestamp', Values : ['20080218150419Z']
Attribute id : 'userPassword', Values : [0x73 0x65 0x63 0x72 0x65 0x74 ]=
Attribute id : 'uid', Values : ['admin']
Attribute id : 'displayName', Values : ['Directory Superuser']
With replication:
Is this a bug in the replication inteceptor? Shall I open a JIRA entry?
Regards
Simon Temple
DS 1.5.2-SNAPSHOTJDK 1.5.1_11Win 2003 Server=
--alternative_NB2620_23915
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
A simple test with an embedded DS:
public=
String testNullAttributeGet() throws NamingException {
&n=
bsp;
Name nm =3D new LdapName( "uid=3D=
admin,ou=3Dsystem" );
Attributes atts =3D new=
InitialDirContext( createContextEnv( ) ).getAttributes( nm, null )=
;
return atts.toString();
}
=
Without replication:
Attribute id : 'sn', Values : ['administr=
ator']
Attribute id : 'objectClass', Values : ['person', 'organizationalPerson'=
, 'inetOrgPerson', 'top']
Attribute id : 'cn', Values : ['system administrator']
Attribute id : 'creatorsName', Values : ['uid=3Dadmin,ou=3Dsystem']
Attribute id : 'createTimestamp', Values : ['20080218150419Z']
Attribute id : 'userPassword', Values : [0x73 0x65 0x63 0x72 0x65 0x74 ]=
Attribute id : 'uid', Values : ['admin']
Attribute id : 'displayName', Values : ['Directory Superuser']
With replication:
<empty>
Is this a bug in the=
replication inteceptor? Shall I open a JIRA entry?
Regards
Simon Temple
DS 1.5.2-SNAPSHOT
JDK 1.5.1_11
Win 2=
003 Server
--alternative_NB2620_23915--