Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-54542

/wiki/rest/userprovisioning/1/config throws 500 error when multiple entries are in Global Permissions

XMLWordPrintable

      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

      1. Go to Global permissions in Confluence.
      2. Edit Permissions
      3. uncheck all permissions from the affected group (administrators-confluence in this example)
      4. Save the permissions
        • The Group will NOT be removed, instead it will remain in place with an option ticked that you removed
      5. Keep repeating step 3-4 until the Group no longer is shown on the Global Permissions page.
      6. Re-add the group.

      The error will be cleared up and the OD user management page will work once more.

              Unassigned Unassigned
              imaduro Ivan Maduro (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: