Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-32267

Users can attempt to update their email on read-only user directories

    XMLWordPrintable

Details

    Description

      We have JIRA connected to a read-only Crowd instance (2.6.1) and when users attempt to update the email address on their profile, a system error and stack trace is returned.

      If the user directory is read-only, the user shouldn't be allowed to edit the field, or at least receive an error stating it is not possible to change the email. An exception page isn't particularly helpful for them.

      The returned error message when submitting a new email address:

      System Error
      A system error has occurred.
      
      Please try submitting this problem via the Support Request Page 
      Otherwise, please create a support issue on our support system at http://support.atlassian.com with the following information:
      a description of your problem
      
      cut & paste the error and system information found below
      attach the application server log file ( /home/jira/log/atlassian-jira.log )
      
      Cause: 
      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 'My User' because directory 'phpBB' does not allow updates.</message></error>
      
      Stack Trace: [hide]
      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 'My User' because directory 'phpBB' does not allow updates.</message></error>
      	at com.atlassian.crowd.embedded.core.CrowdServiceImpl.updateUser(CrowdServiceImpl.java:329)
      	at com.atlassian.crowd.embedded.core.DelegatingCrowdService.updateUser(DelegatingCrowdService.java:90)
      	at com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl.updateUser(FilteredCrowdServiceImpl.java:51)
      	at com.atlassian.jira.web.action.user.EditProfile.doExecute(EditProfile.java:122)
      	at webwork.action.ActionSupport.execute(ActionSupport.java:165)
      	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:82)
      	at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39)
      	at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31)
      	at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16)
      *snip*
      	at java.lang.Thread.run(Thread.java:662)
      
      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 'My User' because directory 'phpBB' does not allow updates.</message></error>
      	at com.atlassian.crowd.integration.rest.service.RestExecutor.throwError(RestExecutor.java:458)
      	at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andCheckResponse(RestExecutor.java:384)
      	at com.atlassian.crowd.integration.rest.service.RestCrowdClient.updateUser(RestCrowdClient.java:154)
      	at com.atlassian.crowd.directory.RemoteCrowdDirectory.updateUser(RemoteCrowdDirectory.java:192)
      	at com.atlassian.crowd.directory.DbCachingRemoteDirectory.updateUser(DbCachingRemoteDirectory.java:267)
      	at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.updateUser(DirectoryManagerGeneric.java:352)
      	at com.atlassian.crowd.manager.application.ApplicationServiceGeneric.updateUser(ApplicationServiceGeneric.java:433)
      	at com.atlassian.crowd.embedded.core.CrowdServiceImpl.updateUser(CrowdServiceImpl.java:315)
      	... 161 more
      *snip*

      Attachments

        Activity

          People

            nguyennguyen Nguyen Nguyen (Inactive)
            3e342ef396c7 phpBB phpBB
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: