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] Updated: (DIRSERVER-1150) No error thrown when removing a non existing value of an attribute
Date Thu, 10 Jul 2008 00:03:31 GMT

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

Emmanuel Lecharny updated DIRSERVER-1150:
-----------------------------------------

    Fix Version/s:     (was: 1.5.3)
                   1.5.4

Not easy to fix.

Here are some ideas :

(01:54:38 AM) elecharny@gmail.com/Gaim: if I check the attribute before deleting it$
(01:54:47 AM) elecharny@gmail.com/Gaim: and thrown a NoSuchAttribute exception
(01:54:52 AM) elecharny@gmail.com/Gaim: it works well,
(01:55:05 AM) elecharny@gmail.com/Gaim: but the changelog is splitting chunks
(01:55:18 AM) elecharny@gmail.com/Gaim: because we already stored the reverted operation,
(01:55:25 AM) elecharny@gmail.com/Gaim: assuming that the attribute exists
(01:55:32 AM) elecharny@gmail.com/Gaim: which is obviously not the case
(01:55:45 AM) elecharny@gmail.com/Gaim: so when we try to revert to pass to the next test,
(01:55:48 AM) elecharny@gmail.com/Gaim: kaboom !
(01:56:14 AM) Alex Karasulu: well then preload the entry in changelog service before making
the decision to determine what the proper reverse operation will be  
(01:56:50 AM) elecharny@gmail.com/Gaim: I think we should revert the revert if we have an
exception
(01:56:59 AM) Alex Karasulu: yeah good point 
(01:57:04 AM) Alex Karasulu: we have to 
(01:57:12 AM) Alex Karasulu: that's another thing that we do not do
(01:57:12 AM) elecharny@gmail.com/Gaim: or that we don't apply the revert if we get an exception
(01:57:27 AM) Alex Karasulu: we need transactions here
(01:57:39 AM) elecharny@gmail.com/Gaim: anyway, the modify/add/delete operations have to be
reviewed from top to the bottom


> No error thrown when removing a non existing value of an attribute
> ------------------------------------------------------------------
>
>                 Key: DIRSERVER-1150
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1150
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.1
>            Reporter: Pierre-Arnaud Marcelot
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.4
>
>
> It's possible with Apache DS 1.5.1 and the latest trunk to execute a request where you
remove a non existing value of an attribute.
> This request return a SUCCES response.
> I think an Error Response should be returned instead, as OpenLDAP does, indicating that
the value does not exist.

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