Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-26611

Upon Deleting a user in Confluence, a stack trace is shown.

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      When an Administrator attempts to delete a user from Confluence user directory in a Confluence only instance, he gets the following stack trace:

      Cause
      com.atlassian.confluence.core.InsufficientPrivilegeException: User [wmehanna@horvath-partners.com] does not have the required privileges.
      at com.atlassian.confluence.security.SpacePermissionCoordinator.removeAllPermissions(SpacePermissionCoordinator.java:72)
      Stack Trace:[hide]
      com.atlassian.confluence.core.InsufficientPrivilegeException: User [wmehanna@horvath-partners.com] does not have the required privileges.
      at com.atlassian.confluence.security.SpacePermissionCoordinator.removeAllPermissions(SpacePermissionCoordinator.java:72)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy37.removeAllPermissions(Unknown Source)
      

      The problem is that the Administrator does not have permission on a personal space for that user. Adding the permission will solve the problem.

      As a user I would expect a more meaningful error message instead of a stack trace.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              romar Abdulrazaq Mohammed Ali Omar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: