You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Alex Karasulu (JIRA)" <ji...@apache.org> on 2006/08/27 04:57:23 UTC

[jira] Closed: (DIRSERVER-663) Problem creating subContext with a Name Object.

     [ http://issues.apache.org/jira/browse/DIRSERVER-663?page=all ]

Alex Karasulu closed DIRSERVER-663.
-----------------------------------

    Fix Version/s: 1.1.0
                   1.0-RC4
       Resolution: Fixed

Fixes made in following commits:

437283 (1.0), 437284 (1.1) in shared

437285 (1.0), 437286 (1.1) in apacheds

> Problem creating subContext with a Name Object.
> -----------------------------------------------
>
>                 Key: DIRSERVER-663
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-663
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>            Reporter: John Conlon
>         Assigned To: Alex Karasulu
>             Fix For: 1.1.0, 1.0-RC4
>
>
> Cannot use a javax.naming.Name object to create a subContext. This failure is impacting
> org.apache.directory.server.protocol.shared.store.LdifFileLoader and 
> org.apache.directory.server.protocol.shared.AbstractBackingStoreTest classes.
> //The following test demonsttates the problem.
> public void testCreateContextWithCompositeName() throws Exception {
>   Attributes attrs = new BasicAttributes(true);
>   Attribute objclass = new BasicAttribute("objectClass");
>   objclass.add("top");
>   objclass.add("extensibleObject");
>   attrs.put(objclass);
>   Name relativeName = new CompositeName("cn=dns,ou=services");
>   
>   //ctx.createSubcontext(relativeName.toString(), attrs);//Passes!
>   ctx.createSubcontext(relativeName, attrs);//Fails!
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira