directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Howard Chu <...@symas.com>
Subject Re: Question about the modify() operation
Date Sun, 09 Aug 2009 23:44:35 GMT
Emmanuel Lecharny wrote:
> Hi guys,
>
> just to be sure : if we try to remove a value from an existing
> attributeType for an entry, and if this value does not exist, should we
> generate an error or not ? Right now, we assume that this operation
> succeed, because it does nothing.
>
> For instance, if we try to remove  :
>
> description: absent
>
> from :
> dn: cn=test
> objectClass: top
> objectClass: person
> cn: test
> sn: test
> description: test
> description: Just a test
>
> we won't get an error.
>
> Is this correct ?
>
Pretty sure it should fail and return NoSuchAttribute.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Mime
View raw message