« Return to Thread: [jira] Created: (DIRSERVER-964) Binding does not return DirContext Object's when creating by doing ctx.createSubcontext("cn=test");

[jira] Commented: (DIRSERVER-964) Binding does not return DirContext Object's when creating by doing ctx.createSubcontext("cn=test");

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View in Thread


    [ https://issues.apache.org/jira/browse/DIRSERVER-964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503180 ]

Ole Ersoy commented on DIRSERVER-964:
-------------------------------------

I'm just going intuition for this.  The following asserts pass:

          assertEquals("cn=L1,cn=L0,ou=test", binding.getName());
          assertFalse(binding.isRelative());

To me it seems like this should pass:

          assertEquals("cn=L1", binding.getName());
          assertTrue(binding.isRelative());

It seems like binding.getName() is returning what binding.getNameInNamespace() should return.  It also seems like binding.isRelative() should be true, since the object the binding should contain should be a DirContext instance that is relative to L0.


> Binding does not return DirContext Object's when creating by doing ctx.createSubcontext("cn=test");
> ---------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-964
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-964
>             Project: Directory ApacheDS
>          Issue Type: Bug
>            Reporter: Ole Ersoy
>             Fix For: pre-2.0
>
>         Attachments: SelfContainedBindingTest.java
>
>
> See test.  I expect assertNull(binding.getObject()); to fail, but it passes.  If I manually attempt to lookup the DirContext that the same DirContext instance, I get a real directory context.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

 « Return to Thread: [jira] Created: (DIRSERVER-964) Binding does not return DirContext Object's when creating by doing ctx.createSubcontext("cn=test");