directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Conlon (JIRA)" <j...@apache.org>
Subject [jira] Created: (DIRSERVER-663) Problem creating subContext with a Name Object.
Date Tue, 04 Jul 2006 16:03:29 GMT
Problem creating subContext with a Name Object.
-----------------------------------------------

         Key: DIRSERVER-663
         URL: http://issues.apache.org/jira/browse/DIRSERVER-663
     Project: Directory ApacheDS
        Type: Bug

  Components: core  
    Reporter: John Conlon


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


Mime
View raw message