Details
-
Bug
-
Resolution: Deployed
-
Medium
-
4.2.3
-
4.02
-
Description
If during workflow reassignment a ticket is not migrated to the new workflow and the old workflow is deleted, while accessing the ticket the following error is returned:
2011-01-27 15:59:49,274 http-8080-4 ERROR admin 959x264x1 1fzk33s 0:0:0:0:0:0:0:1 /browse/XOPS-7564 [webwork.dispatcher.ServletDispatcher] Could not execute action java.lang.NullPointerException at com.atlassian.jira.permission.PermissionContextImpl.getRelevantStepDescriptor(PermissionContextImpl.java:83) at com.atlassian.jira.permission.WorkflowPermissionFactory.getWorkflowPermissions(WorkflowPermissionFactory.java:30) at com.atlassian.jira.security.WorkflowBasedPermissionManager.hasPermission(WorkflowBasedPermissionManager.java:75) at com.atlassian.jira.security.AbstractPermissionManager.hasPermission(AbstractPermissionManager.java:119) at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:70) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at $Proxy35.hasPermission(Unknown Source) at com.atlassian.jira.web.action.issue.AbstractIssueSelectAction.getIssue(AbstractIssueSelectAction.java:112) at com.atlassian.jira.web.action.issue.ViewIssue.doExecute(ViewIssue.java:180) 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) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) ...
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 | +-------+------+-------------+-------+
We should consider verifying success of the workflow association process by running post-check.
Attachments
Issue Links
- relates to
-
JRASERVER-23572 Integrity checker crashes if ticket is associated with an orphan workflow
- Closed