directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: APACHE DS 1.5.5 Embedded - Updating multi values attributes with nulls
Date Tue, 15 Dec 2009 18:13:00 GMT
RNakka@osc.state.ny.us a écrit :
> Hi,
>   
Hi,
> We are using APACHE DS 1.5.5 in embedded mode for testng tests. During 
> some of our tests , we  are trying  to update a User's multi valued 
> attributes
>
> If we pass not null values, then the attributes are updated with out any 
> problem.But if we pass a null value or an empty list we get a null pointer 
> exception and the attribute is not updated. Please find the exception 
> trace attached below.
>
> This was working in APACHE DS 1.5.4 ( NOT embedded version) server
>
> We are using Spring LDAP 1.3 API to connect and perform operations on the 
> embedded APACHE DS from testng. 
>
> We tried two ways to update the multi valued attribute (email2) with a 
> null. Our goal is to not have any values in the multi valued attribute 
> (email2)
>
> 1. Trying to remove the attribute from user in APACHE DS, as its desired 
> to be null
>
>         DirContextOperations context;
>         context.removeAttributeValue("email2", oldValuesArray);
>   

The context is not initialized to anything... Is it normal ?

Also what is the email2 definition ?

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com



Mime
View raw message