Details
-
Bug
-
Resolution: Timed out
-
Medium
-
5
-
Severity 2 - Major
-
Description
If Multiple entries for a Single group are present in the spacepermissions table for Global Permissions, a request to /wiki/rest/userprovisioning/1/config will throw a 500 error.
The UI is unaffected but this will prevent the New User Management in OnDemand from loading the Confluence license count, instead it shows the folowing error:
Confluence (Error communicating with Confluence: Internal Server Error)
Going to the rest url directly shows the following
java.lang.IllegalArgumentException: duplicate key: administrators-confluence at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115) at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:72) at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:221) at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:207) at com.google.common.collect.Maps.uniqueIndex(Maps.java:571) at com.google.common.collect.Maps.uniqueIndex(Maps.java:527) at com.atlassian.crowd.plugin.usermanagement.userprovisioning.UserProvisioningController$1.apply(UserProvisioningController.java:32) at com.atlassian.crowd.plugin.usermanagement.userprovisioning.UserProvisioningController$1.apply(UserProvisioningController.java:28) at com.atlassian.crowd.plugin.usermanagement.userprovisioning.UserProvisioningController.toMap(UserProvisioningController.java:71) at com.atlassian.crowd.plugin.usermanagement.userprovisioning.UserProvisioningController.getConfiguration(UserProvisioningController.java:55) at com.atlassian.crowd.plugin.usermanagement.userprovisioning.UserProvisioningResource.getConfiguration(UserProvisioningResource.java:41) at sun.reflect.GeneratedMethodAccessor12894.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at
Workaround/Fix
To fix this in an affected instance perform the following steps:
the error message shows the following: duplicate key: administrators-confluence so administrators-confluence group needs to be cleaned up
- Go to Global permissions in Confluence.
- Edit Permissions
- uncheck all permissions from the affected group (administrators-confluence in this example)
- Save the permissions
- The Group will NOT be removed, instead it will remain in place with an option ticked that you removed
- Keep repeating step 3-4 until the Group no longer is shown on the Global Permissions page.
- Re-add the group.
The error will be cleared up and the OD user management page will work once more.
Attachments
Issue Links
- causes
-
CLOUD-6988 Global permissions in Confluence being defined multiple times
- Closed