You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "John E. Conlon" <jc...@verticon.com> on 2006/06/30 21:56:11 UTC
Problem creating subContext with a Name.
Encountered a problem when using a Name object to create a SubContext.
Shouldn't the following test pass?
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);//Works
ctx.createSubcontext(relativeName, attrs);//Fails!
}
- John