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

Referencing invalid project id in search request URL causes Statuses edit fields to not appear in Issue Navigator

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            mtokar Michael Tokar
            mtokar Michael Tokar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2.5h
                2.5h