Product: Confluence
Environment
| Operating System | |
|---|---|
| Affect Version/s | 2.5.3 |
| JVM | |
| Database | MySQL 4.1.x |
| Application Server | Tomcat 5.0.x |
Error Message
User "mbraun" already in wiki. Error getting groups for "mbraun": REMOTE ERROR: org.apache.xmlrpc.XmlRpcException: null values not supported by XML-RPC PS: The error message *User "mbraun" already in wiki.* is generated by the user's script. This is traceable is user's Perl script.
Symptom
Customer tried to use custom perl script to add users to local group. But not all users added successfully. Some of the users failed and all of these users (who failed) are governed by LDAP authentication
Diagnostics/Test
To replicate customer problem, the following have been done:
- Test 1:
1. Setup the Confluence test instance
2. Implement both LDAP integration method (LDAP authentication and LDAP group management)
3. There are 5 users. 2 of them are using LDAP authentication
4. Created a script using python to add all users into a local group.
5. Result:The problem could not be reproduced
- Test 2:
1. Get customer approval to run a a simple python script (provided by Tony Cheah) to his production server. Basically this script will just add one user, "dpiper" (problematic) to certain group, "loc-musicgrad. ".
2. Result :The script executed successfully. And customer could see the user was added to the group.
Root Cause
Customer's script problem.It is because customer is are using LDAP for some of our groups management. The script was bombing out if the user was not currently in any groups.
Solution
Customer made changes to force the script to continue if no groups were found and to add the user to the group.
