com.atlassian.confluence.core.InsufficientPrivilegeException: User [wmehanna@horvath-partners.com] does not have the required privileges.

Atlassian JIRA | Razaq Omar [Atlassian] | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    When an Administrator attempts to delete a user from Confluence user directory in a Confluence only instance, he gets the following stack trace: {noformat} 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) {noformat} 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.

    Atlassian JIRA | 5 years ago | Razaq Omar [Atlassian]
    com.atlassian.confluence.core.InsufficientPrivilegeException: User [wmehanna@horvath-partners.com] does not have the required privileges.

    Root Cause Analysis

    1. com.atlassian.confluence.core.InsufficientPrivilegeException

      User [wmehanna@horvath-partners.com] does not have the required privileges.

      at com.atlassian.confluence.security.SpacePermissionCoordinator.removeAllPermissions()
    2. com.atlassian.confluence
      SpacePermissionCoordinator.removeAllPermissions
      1. com.atlassian.confluence.security.SpacePermissionCoordinator.removeAllPermissions(SpacePermissionCoordinator.java:72)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    5. com.atlassian.spring
      SpringProfilingInterceptor.invoke
      1. com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16)
      1 frame
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      1 frame
    7. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    8. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    9. Unknown
      $Proxy37.removeAllPermissions
      1. $Proxy37.removeAllPermissions(Unknown Source)
      1 frame