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:09:26 UTC

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

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.5.0, 1.0.2
            Reporter: 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.


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

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny reassigned DIRSERVER-967:
-------------------------------------------

    Assignee: Emmanuel Lecharny

> 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.


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

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny resolved DIRSERVER-967.
-----------------------------------------

    Resolution: Fixed

Fixed in 1.0 :
http://svn.apache.org/viewvc?view=rev&rev=546142
and
http://svn.apache.org/viewvc?view=rev&rev=546143

Fixed in 1.5 :
http://svn.apache.org/viewvc?view=rev&rev=546144
and 
http://svn.apache.org/viewvc?view=rev&rev=546145


> 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.