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

Integrity checker crashes if ticket is associated with an orphan workflow

    XMLWordPrintable

Details

    Description

      If during workflow reassignment a ticket is not migrated to the new workflow and the old workflow is deleted, integrity checker crashes while scanning for workflow problems with the following error:

      2011-01-27 15:12:34,756 http-8080-7 ERROR admin 912x159x1 1fzk33s 0:0:0:0:0:0:0:1 /secure/admin/jira/IntegrityChecker.jspa [atlassian.jira.workflow.OSWorkflowManager] Could not get workflow called: Auto Assign Workflow - JIRA / CONFLUENCE Access: com.opensymphony.workflow.FactoryException: Unknown workflow name
      com.opensymphony.workflow.FactoryException: Unknown workflow name
      	at com.opensymphony.workflow.config.DefaultConfiguration.getWorkflow(DefaultConfiguration.java:86)
      	at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:184)
      	at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:476)
      	at com.atlassian.jira.appconsistency.integrity.check.WorkflowCurrentStepCheck.doCheck(WorkflowCurrentStepCheck.java:97)
      	at com.atlassian.jira.appconsistency.integrity.check.WorkflowCurrentStepCheck.preview(WorkflowCurrentStepCheck.java:51)
      	at com.atlassian.jira.appconsistency.integrity.IntegrityChecker.preview(IntegrityChecker.java:63)
      	at com.atlassian.jira.appconsistency.integrity.IntegrityChecker.previewWithIds(IntegrityChecker.java:35)
      	at com.atlassian.jira.web.action.admin.IntegrityChecker.doExecute(IntegrityChecker.java:66)
      	at webwork.action.ActionSupport.execute(ActionSupport.java:165)
      	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54)
      	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:139)
      	at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:171)
      

      This problem can be simulated by associating a test issue with an invalid workflow in OS_WFENTRY.

      mysql> select * from OS_WFENTRY where ID=(select workflow_id from jiraissue where pkey='TP-1');
      +-------+------+-------------+-------+
      | ID    | NAME | INITIALIZED | STATE |
      +-------+------+-------------+-------+
      | 10000 | jira | 0           | 1     |
      +-------+------+-------------+-------+
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bdziedzic Bogdan Dziedzic [Atlassian]
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: