directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Conlon (JIRA)" <>
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
     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 and classes.

//The following test demonsttates the problem.
public void testCreateContextWithCompositeName() throws Exception {
  Attributes attrs = new BasicAttributes(true);
  Attribute objclass = new BasicAttribute("objectClass");

  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:
For more information on JIRA, see:

View raw message