directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DIRSERVER-1733) Cannot delete leaf entry -- Operation not allowed on non-leaf (66) - NOT_ALLOWED_ON_NON_LEAF: failed for MessageType : DEL_REQUEST
Date Tue, 02 Oct 2012 12:51:08 GMT

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

Emmanuel Lecharny resolved DIRSERVER-1733.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-M9

I'm pretty sure we fixed this issue lately : in some cases, binary attributes weren't correctly,
leading to remaining entries in the backend.
                
> Cannot delete leaf entry -- Operation not allowed on non-leaf (66) - NOT_ALLOWED_ON_NON_LEAF:
failed for MessageType : DEL_REQUEST
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-1733
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1733
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M7
>         Environment: java version "1.6.0_31"
> Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
> Linux annafi.dev 3.0.0-21-generic #35-Ubuntu SMP Fri May 25 17:57:41 UTC 2012 x86_64
x86_64 x86_64 GNU/Linux
>            Reporter: Hendy Irawan
>            Priority: Critical
>             Fix For: 2.0.0-M9
>
>
> Right now, in my database it is impossible to delete an entry, although all the children
has been deleted (i.e. it's a leaf entry) :
> ceefour@annafi:~$ ldapdelete -H ldap://localhost:10389/ -D uid=admin,ou=system -x -W
uid=a_good_listener,ou=users,dc=berbatik,dc=com    
> Enter LDAP Password:                                                                
                                                   
> ldap_delete: Operation not allowed on non-leaf (66)                                 
                                                   
>         additional info: NOT_ALLOWED_ON_NON_LEAF: failed for MessageType : DEL_REQUEST
                                                 
> Message ID : 2                                                                      
                                                   
>     Del request                                                                     
                                                   
>         Entry : 'uid=a_good_listener,ou=users,dc=berbatik,dc=com'                   
                                                   
> org.apache.directory.shared.ldap.model.message.DeleteRequestImpl@bec72d56: ERR_700 [66]
Cannot delete entry uid=a_good_listener,ou=users,dc=berbatik,dc=com it has children! 
> In addition, it's also not possible to rename the entry, with a weird error java.lang.String
cannot be cast to java.lang.Long] :
>   javax.naming.NamingException: [LDAP: error code 1 - OPERATIONS_ERROR: failed for MessageType
: MODIFYDN_REQUEST
> Message ID : 2
>     ModifyDN Response
>         Entry : 'uid=a_good_listener,ou=users,dc=berbatik,dc=com'
>         New Rdn : 'uid=a_good_listenerx'
>         Delete old Rdn : true
> org.apache.directory.shared.ldap.model.message.ModifyDnRequestImpl@269d35c1: java.lang.String
cannot be cast to java.lang.Long]; remaining name 'uid=a_good_listener,ou=users,dc=berbatik,dc=com'
> 	at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3107)
> 	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3013)
> 	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2820)
> 	at com.sun.jndi.ldap.LdapCtx.c_rename(LdapCtx.java:706)
> 	at com.sun.jndi.toolkit.ctx.ComponentContext.p_rename(ComponentContext.java:693)
> 	at com.sun.jndi.toolkit.ctx.PartialCompositeContext.rename(PartialCompositeContext.java:251)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper$3.run(JNDIConnectionWrapper.java:563)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.runAndMonitor(JNDIConnectionWrapper.java:1272)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.checkConnectionAndRunAndMonitor(JNDIConnectionWrapper.java:1203)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.renameEntry(JNDIConnectionWrapper.java:608)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.RenameEntryJob.renameEntry(RenameEntryJob.java:288)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.RenameEntryJob.executeNotificationJob(RenameEntryJob.java:141)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractNotificationJob.executeAsyncJob(AbstractNotificationJob.java:43)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> If required, I can provide the partition data, but in private.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message