Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-663

Problem creating subContext with a Name Object.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-RC4, 1.5.0
    • core
    • None

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

      Attachments

        Activity

          People

            akarasulu Alex Karasulu
            jconlon John E. Conlon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: