From dev-return-40626-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Fri Mar 16 12:28:00 2012 Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B72799AB for ; Fri, 16 Mar 2012 12:28:00 +0000 (UTC) Received: (qmail 14386 invoked by uid 500); 16 Mar 2012 12:28:00 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 14351 invoked by uid 500); 16 Mar 2012 12:28:00 -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 14344 invoked by uid 99); 16 Mar 2012 12:28:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2012 12:28:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2012 12:27:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F14B323317 for ; Fri, 16 Mar 2012 12:27:38 +0000 (UTC) Date: Fri, 16 Mar 2012 12:27:38 +0000 (UTC) From: "Pierre-Arnaud Marcelot (Commented) (JIRA)" To: dev@directory.apache.org Message-ID: <74402952.24031.1331900859002.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <802157531.23482.1331888861088.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DIRSERVER-1701) ApacheDS doesn't return all the attributes when invoking DirContext.getAttributes(Name, null) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-1701?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 13231103#comment-13231103 ]=20 Pierre-Arnaud Marcelot commented on DIRSERVER-1701: --------------------------------------------------- Exactly, that's what I explained above. ;) =20 > ApacheDS doesn't return all the attributes when invoking DirContext.getA= ttributes(Name, null) > -------------------------------------------------------------------------= --------------------- > > Key: DIRSERVER-1701 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1701 > Project: Directory ApacheDS > Issue Type: Bug > Environment: (javier@lenovo trunk)$ /opt/jdk1.6.0_25/bin/java -ve= rsion > java version "1.6.0_25" > Java(TM) SE Runtime Environment (build 1.6.0_25-b06) > Java HotSpot(TM) Server VM (build 20.0-b11, mixed mode) > (javier@lenovo trunk)$ cat /etc/issue > Ubuntu 11.10 \n \l > ApacheDS 2.0.0-M3 > Reporter: Javier Alc=C3=A1zar > > ApacheDS doesn't return all the attributes when invoking javax.naming.dir= ectory.DirContext.getAttributes(Name, null) > Running some unit tests as described here: http://directory.apache.org/ap= acheds/1.5/42-using-apacheds-for-unit-tests.html > Using a ldif file. > When the following code is esecuted: > ... > env.put("java.naming.ldap.attributes.binary", > ATTR_OBJECTSID +' '+ ATTR_OBJECTGUID+ ' '+"entryUUID"); > ctx =3D javax.naming.ldap.InitialLdapContext(env,null); > ..... > attrIds =3D null; > attrs =3D ctx.getAttributes(distinguishedName, attrIds); > attrs doesn't contain ALL the attributes as specified by the JavaDoc=20 > attrIds - the identifiers of the attributes to retrieve. null indicates t= hat all attributes should be retrieved; > http://docs.oracle.com/javase/6/docs/api/javax/naming/directory/DirContex= t.html#getAttributes(javax.naming.Name, java.lang.String[]) > Using the same code against other directory servers returns all the attri= butes. > ----------- > Returned: > dn: ou=3D3809,ou=3Dsystem > objectclass: organizationalUnit > objectclass: top=20 > ou: 3809 > description: Description goes here > l: testgroup@test.com > postalcode: Group Name > Expected: > dn: ou=3D3809,ou=3Dsystem > objectclass: organizationalUnit > objectclass: top=20 > ou: 3809 > description: Description goes here > l: testgroup@test.com > postalcode: Group Name > createTimestamp: 20120316074659Z > creatorsName: 0.9.2342.19200300.100.1.1=3Dadmin,2.5.4.11=3Dsystem > entryCSN: 20120316074659.800000Z#000000#000#000000 > entryParentId: 1 > entryUUID:: ZjBkNDQ5NjUtMDMxMy00YWI2LTg5YzMtYzY0NDQ5N2YwOWVh > ------- > Log: > 6:49:38 [DEBUG] registries.DefaultSchemaObjectRegistry - Found ATTRIBUTE_= TYPE ( 2.16.840.1.113730.3.1.34 > NAME 'ref' > DESC namedref: subordinate referral URL > EQUALITY caseExactMatch > SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 > USAGE distributedOperation > ) > with oid: ref (DefaultSchemaObjectRegistry.java:181) > 16:49:38 [DEBUG] handlers.SearchHandler - Sending ou=3D3809,ou=3Dsystem (= SearchHandler.java:401) > 16:49:38 [DEBUG] filterchain.IoFilterEvent - Event MESSAGE_RECEIVED has b= een fired for session 3 (IoFilterEvent.java:118) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira