directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon.Tem...@saaconsultants.com
Subject getAttributes( nm, null ) returns empty Attributes if replication enabled?
Date Mon, 18 Feb 2008 15:18:43 GMT
A simple test with an embedded DS:
public String testNullAttributeGet() throws NamingException {          Name nm = new LdapName(
"uid=admin,ou=system" );     Attributes atts = 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=admin,ou=system']
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-SNAPSHOTJDK 1.5.1_11Win 2003 Server
Mime
View raw message