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

User based workflow condition breaks when user is renamed

    XMLWordPrintable

Details

    Description

      This was tested on JIRA v6.0-m08 with the default JIRA workflow.

      Steps to reproduce

      1. Create a user with username 'test'
      2. Make sure the user 'test' has the project permission Assignable User
      3. Create a new issue ABC-123
      4. Assign ABC-123 to 'test' user
      5. Rename 'test' user to something else, eg. 'testtest'
      6. Transition ABC-123 to 'In Progress' step (Start Progress transition)

      Same results if the issue is already in the 'In Progress' status, and attempting to transition issue back to 'Open' step (Stop Progess transition)

      It appears to be related to the Workflow condition "Only the assignee of the issue can execute this transition". If that condition is removed from either transition, it will work as expected.

      Expected Results

      • Issue transitions to In Progress

      Actual Results

      • Error: "Action 4 is invalid"

      Stack trace in the logs:

      2013-03-12 15:03:19,643 http-bio-8080-exec-25 ERROR testtest 903x761x1 1l7onax 0:0:0:0:0:0:0:1%0 /secure/WorkflowUIDispatcher.jspa [atlassian.jira.workflow.OSWorkflowManager] Caught exception while attempting to perform action 4 from workflow 10006 on issue 'DEMO-7'
      com.opensymphony.workflow.InvalidActionException: Action 4 is invalid
      	at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:559)
      	at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowActionInsideTxn(OSWorkflowManager.java:952)
      	at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(OSWorkflowManager.java:907)
      	at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:451)
      	at com.atlassian.jira.web.action.workflow.SimpleWorkflowAction.doExecute(SimpleWorkflowAction.java:30)
      	at webwork.action.ActionSupport.execute(ActionSupport.java:165)
      	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:85)
      	at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39)
      	at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31)
      	at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16)
      	at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35)
      	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:221)
      	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:185)
      

      Workaround

      • Remove condition "Only the assignee of the issue can execute this transition." from both Start Progress and Stop Progress transitions.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pkirkeby Pelle Kirkeby (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: