You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2007/06/11 15:58:26 UTC

[jira] Closed: (DIRSERVER-967) Creating a subcontext is not possible with only a Name

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

Emmanuel Lecharny closed DIRSERVER-967.
---------------------------------------


Fixed

> Creating a subcontext is not possible with only a Name
> ------------------------------------------------------
>
>                 Key: DIRSERVER-967
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-967
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0.2, 1.5.0
>            Reporter: Emmanuel Lecharny
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.1, 1.0.3
>
>
> If one wants to create an entry using :
> ctx.createSubcontext( Name )
> the server fails, because it expect a cn attribute to be present. This is not good, as stated here : http://java.sun.com/products/jndi/jndi-ldap-gl.html#API
> DirContext.createSubcontext
> "...Perform an LDAP add operation to create the named entry and its associated attributes. If no attributes are supplied then the objectClass attribute is generated with the values top and javaContainer (javaContainer is a structural class that is necessary to avoid a schema violation error)..."
> This is due to the fact that the objectClass is not correctly added :
>         attributes.put( JavaLdapSupport.OBJECTCLASS_ATTR, JavaLdapSupport.JCONTAINER_ATTR );
>         attributes.put( JavaLdapSupport.OBJECTCLASS_ATTR, JavaLdapSupport.TOP_ATTR );
> the second attribute value replaces the first one.

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