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

Deleting project role "breaks" workflow condition page

    XMLWordPrintable

Details

    Description

      If a workflow condition uses "User is In Project Role", after deleting the particular project role, you will get this error message if you try to access the workflow page:

      2007-02-12 17:59:41,000 http-8080-Processor24 ERROR [webwork.util.ServletValueStack] METHOD: "formatDescriptor", exception:
      java.lang.NullPointerException
              at com.atlassian.jira.plugin.workflow.WorkflowIsUserInProjectRoleConditionFactoryImpl.getVelocityParamsForView(WorkflowIsUserInProjectRoleConditionFactory
              at com.atlassian.jira.plugin.workflow.AbstractWorkflowPluginFactory.getVelocityParams(AbstractWorkflowPluginFactory.java:36)
              at com.atlassian.jira.plugin.workflow.WorkflowConditionModuleDescriptor.getHtml(WorkflowConditionModuleDescriptor.java:29)
              at com.atlassian.jira.web.bean.WorkflowDescriptorFormatBean.formatDescriptor(WorkflowDescriptorFormatBean.java:80)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61)
              at webwork.util.InjectionUtils.invoke(InjectionUtils.java:52)
              at webwork.util.ValueStack.findValue(ValueStack.java:426)
              at webwork.util.ValueStack.findValue(ValueStack.java:175)
              at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:61)
              at webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54)
              at org.apache.jsp.secure.admin.views.workflow.workflow_002dconditions_002dvalidators_002dresults_jsp._jspx_meth_webwork_property_6(workflow_002dconditions
      846)
      ...
      

      Also, the "Only users in project role Administrators can execute this transition" message will be changed to something else, e.g. "Only the assignee of the issue can execute this transition", so you will be seeing two duplicated conditions.

      Attachments

        Activity

          People

            tim@atlassian.com TimP
            lean.zhenyueh Zhen Yueh, Lean [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: