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

Unhandled exceptions when performing operations on a Crowd server and it doesn't have permissions to execute

    XMLWordPrintable

Details

    Description

      Note: this issue may be related to http://jira.atlassian.com/browse/CONFDEV-2776 but I open a separate issue since the stack is different.

      • In Jira: Add an LDAP directory and set it as Read-Only
      • In Jira: Add Confluence as an application.
      • In Confluence: Add Jira as a crowd server to the list of user directories, set is as Read/Write
      • In Confluence: Try to add a User

      Expected: Error message to propagate to UI
      Actual: Unhandled exception

      com.atlassian.crowd.exception.runtime.OperationFailedException: com.atlassian.crowd.exception.ApplicationPermissionException: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><reason>APPLICATION_PERMISSION_DENIED</reason><message>Cannot update user 'boss1' because directory 'ApacheDS 1' does not allow updates.</message></error>
          at com.atlassian.crowd.embedded.core.CrowdServiceImpl.updateUser(CrowdServiceImpl.java:343)
      caused by: com.atlassian.crowd.exception.ApplicationPermissionException: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><reason>APPLICATION_PERMISSION_DENIED</reason><message>Cannot update user 'boss1' because directory 'ApacheDS 1' does not allow updates.</message></error>
          at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.throwError(RestExecutor.java:414)
      
      • In Confluence: Try add a user from LDAP to a group.

      Expected: Error message to propagate to UI
      Actual:

      com.atlassian.crowd.exception.runtime.OperationFailedException: com.atlassian.crowd.exception.ApplicationPermissionException: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><reason>APPLICATION_PERMISSION_DENIED</reason><message>Cannot update group 'jira-developers' because directory 'ApacheDS 1' does not allow updates.</message></error>
          at com.atlassian.crowd.embedded.core.CrowdServiceImpl.addUserToGroup(CrowdServiceImpl.java:708)
      caused by: com.atlassian.crowd.exception.ApplicationPermissionException: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><reason>APPLICATION_PERMISSION_DENIED</reason><message>Cannot update group 'jira-developers' because directory 'ApacheDS 1' does not allow updates.</message></error>
          at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.throwError(RestExecutor.java:414)
      
      

      Attachments

        Issue Links

          Activity

            People

              nbhawnani Niraj Bhawnani
              farmas Federico Silva Armas [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified