Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.12.3
-
3.12
-
Description
Browsing to a URL with a stale or invalid project id, e.g.:
/secure/IssueNavigator.jspa?reset=true&pid=99999
will cause an ERROR to appear in the logs similar to this:
ERROR [webwork.util.ServletValueStack] METHOD: "searcherEditHtml", exception: java.lang.IllegalArgumentException: Cannot get schemes for null project at com.atlassian.jira.scheme.AbstractSchemeManager.getSchemes(AbstractSchemeManager.java:172) at com.atlassian.jira.workflow.DefaultWorkflowSchemeManager.getWorkflowScheme(DefaultWorkflowSchemeManager.java:77) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflowName(OSWorkflowManager.java:87) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:213) at com.atlassian.jira.issue.search.searchers.impl.StatusSearcher.getSelectListOptions(StatusSearcher.java:83) at com.atlassian.jira.issue.search.searchers.impl.GenericConstantsSearcher.getEditHtml(GenericConstantsSearcher.java:80) at com.atlassian.jira.web.action.issue.IssueNavigator.getSearcherEditHtml(IssueNavigator.java:544) at sun.reflect.GeneratedMethodAccessor387.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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 _jsp._includes._navigator._filter_22dform__jsp._jspService(_filter_22dform__jsp.java:333)
When trying to render filter-form.jsp, the rendering of the Status field depends on which projects are selected. However, if bad project ids are specified through a URL, this will result in a null Project object being used deep in workflow scheme code, which causes the IllegalArgumentException.