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-1250) An error (noSuchObject - code32) should be raised when trying to delete an entry that does not exist
Date Thu, 20 Nov 2008 17:20:44 GMT

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

Emmanuel Lecharny resolved DIRSERVER-1250.
------------------------------------------

    Resolution: Fixed

It has been fixed a long time ago :

    /**
     * Tests normal delete operation on non-existent entries without 
     * the ManageDsaIT control.
     */
    @Test
    public void testDeleteNonExistent() throws Exception
    {
        LDAPConnection conn = getWiredConnection( ldapService );
        
        // delete failure non-existent entry
        try
        {
            conn.delete( "uid=elecharny,ou=users,ou=system" );
            fail( "Should never get here." );
        }
        catch ( LDAPException e )
        {
            assertEquals( ResultCodeEnum.NO_SUCH_OBJECT.getValue(), e.getLDAPResultCode()
);
        }
        
        conn.disconnect();
    }

> An error (noSuchObject - code32) should be raised when trying to delete an entry that
does not exist
> ----------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-1250
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1250
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.3
>            Reporter: Pierre-Arnaud Marcelot
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.5
>
>
> At the moment, no error is thrown to the user when he tries to delete an entry that does
not exist.
> A "noSuchObject" error (LDAP Error Code 32) should be raised I think.

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


Mime
View raw message