Apache Directory Project - Problem creating subContext with a Name.

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > June 2006 > Problem creating subContext with a Name.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem creating subContext with a Name.
John E. Conlon

2006-06-30, 7:11 pm

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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com