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

View: New views
5 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

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

by Bugzilla from ole.ersoy@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks :-)  I'll add the JIRA.

Emmanuel Lecharny wrote:

> Ole Ersoy a écrit :
>
>> Hmmm.  I updated my test with this:
>>
>> ========================================
>>         Attributes attributes                    =
>>             new BasicAttributes();
>>         Attribute attribute                        =
>>             new BasicAttribute(
>>                     "objectClass",
>>                     "top");
>>         attribute.add("subentry");
>>                directoryContextL0                       =
>>              (DirContext)
>>              testPartitionContext.
>>              createSubcontext(l0RDN, attributes);
>>
>>         directoryContextL1                       =
>>              (DirContext)
>>              directoryContextL0.
>>              createSubcontext(l1RDN, attributes);
>> ========================================
>>
>> I think the subentry ObjectClass is part of the RFC that allows this
>> ctx.createSubcontext("cn=test")....When I try running the test above I
>> get this:
>>
>> org.apache.directory.server.core.interceptor.InterceptorException:
>> Unexpected exception. [Root exception is java.lang.NullPointerException]
>
>
> Plain normal. Unless you put the attribute into the attributes, you will
> get this NPE :
> attributes.put( attribute );
>
> Now, what is *not* plain normal, is that the server returns a NPE !!!
>
> Can you fill a JIRA for this nasty NPE ?
>
> Thanks !
>
>

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

by Emmanuel Lecharny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,

> Can you pointing me to those RFCs ?

Alex said it's RFC 2713
http://mail-archives.apache.org/mod_mbox/directory-dev/200704.mbox/%3Ca32f6b020704031322g2dc0cc69w1a3551997d9856b8@...%3E


Oh, damnit ! Yeah, there is something about JNDI and createContext( Name )  :
http://svn.apache.org/viewvc?view=rev&rev=546021

Ok, so this is a real bug, because we have lost this functionnalities (if we aver had it in the past...)

Fine, I will fix it (piece of cake :)



--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

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

by Emmanuel Lecharny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Ok, added issue https://issues.apache.org/jira/browse/DIRSERVER-967

It has been fixed, and will be commited soon

On 6/11/07, Emmanuel Lecharny <elecharny@...> wrote:
Hi,

> Can you pointing me to those RFCs ?

Alex said it's RFC 2713
http://mail-archives.apache.org/mod_mbox/directory-dev/200704.mbox/%3Ca32f6b020704031322g2dc0cc69w1a3551997d9856b8@...%3E


Oh, damnit ! Yeah, there is something about JNDI and createContext( Name )  :
http://svn.apache.org/viewvc?view=rev&rev=546021

Ok, so this is a real bug, because we have lost this functionnalities (if we aver had it in the past...)

Fine, I will fix it (piece of cake :)



--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com



--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

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

by Bugzilla from ole.ersoy@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Terrific - Thanks.  Do you know whether the binding I get from the NamingEnumeration representing the children of L0 should return a context Object when I do binding.getObject()?  It seems that if I can lookup the context L1 and perform DirContext operations on it, then the binding that represents it should return it also?

Emmanuel Lecharny wrote:

> Hi,
>
>      > Can you pointing me to those RFCs ?
>
>     Alex said it's RFC 2713
>     http://mail-archives.apache.org/mod_mbox/directory-dev/200704.mbox/%3Ca32f6b020704031322g2dc0cc69w1a3551997d9856b8@...%3E
>     <http://mail-archives.apache.org/mod_mbox/directory-dev/200704.mbox/%3Ca32f6b020704031322g2dc0cc69w1a3551997d9856b8@...%3E>
>
>
>
> Oh, damnit ! Yeah, there is something about JNDI and createContext( Name
> )  :
> http://svn.apache.org/viewvc?view=rev&rev=546021 
> <http://svn.apache.org/viewvc?view=rev&rev=546021>
>
> Ok, so this is a real bug, because we have lost this functionnalities
> (if we aver had it in the past...)
>
> Fine, I will fix it (piece of cake :)
>
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com <http://www.iktek.com>

[jira] Closed: (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 Threaded | Show Only this Message


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

Emmanuel Lecharny closed DIRSERVER-964.
---------------------------------------

    Resolution: Invalid

I think there is no problem, and even if there were one, it's now dead buried...

> 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: 2.0.0
>
>         Attachments: SelfContainedBindingTest.java, 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.

< Prev | 1 - 2 | Next >