Bug 73246 (XIM68589)

Summary: Calling the AddMember web service method with already existing member ID's adds them as duplicates
Product: [iFolder] iFolder Denali Reporter: Scott Reeves <sreeves>
Component: SimiasAssignee: Mike Lasky <mlasky>
Status: VERIFIED FIXED QA Contact: Jared Allen <jpallen>
Severity: Normal    
Priority: P5 - None    
Version: iFolder Denali   
Target Milestone: Beta 3   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jared Allen 2005-03-16 18:03:01 UTC
Please fill in this template when reporting a bug, unless you know what 
you are doing.
Description of Problem:
1. Obtain a UserID of a member of an iFolder (user1 in iFolder1)
2. Call the web service method AddMember with that user id 
(service.AddMember(iFolder1ID, user1ID, Rights);
3. The user will be added as a duplicate. When you list users1 iFolders 
it will show twice or when you list iFolder1's members it will show user1 
twice


Expected Results:
Should not add duplicate. Either it should silently ignore adding 
existing members or it should throw an AlreadyMemberException.

How often does this happen? 
Always.



------- Additional Comments From mlasky@novell.com 2004-10-27 14:27:51 ----

Code now throws a Simias.ExistException if the member already exists
in the collection. It also now throws a Simias.NotExistException if
the collection or roster cannot be found or if the user does not exist
in the roster.



------- Bug moved to this database by jpallen@novell.com 2005-03-16 11:03 -------

This bug previously known as bug 68589 at http://bugzilla.ximian.com/
http://bugzilla.ximian.com/show_bug.cgi?id=68589
Originally filed under the iFolder (Denali) product and Simias component.

Unknown version iFolder (Denali) in product iFolder (Denali). Setting version to "iFolder (Denali)".
Unknown severity unknown. Setting to default severity "normal".

Comment 1 Scott Reeves 2005-05-16 15:16:10 UTC
Verified in RC2