Description
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!
}