Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-3321

Error Page Should Be Handled Gracefully When There Are No Issues in Task Board

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Answered
    • None
    • None
    • JIRA 4.3.3, GreenHopper 5.6.7
      JIRA 5.1.5, GreenHopper 6.0.4 (classic Task Board)
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Two known way to reproduce this:

      When there are no issues for a particular project in Agile and the grey bar in the Task Board is clicked, the stack trace below is thrown:

      java.lang.ArrayIndexOutOfBoundsException: -1
      	at java.util.ArrayList.get(ArrayList.java:324)
      	at com.pyxis.greenhopper.jira.boards.TaskBoard.getStepBoard(TaskBoard.java:240)
      	at com.pyxis.greenhopper.jira.actions.TaskBoardAction.getSelectedStepBoard(TaskBoardAction.java:326)
      	at com.pyxis.greenhopper.jira.actions.TaskBoardAction.doNavigator(TaskBoardAction.java:269)
      	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:597)
      	at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
      	at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
      	at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:433)
      	at webwork.action.ActionSupport.execute(ActionSupport.java:157)
      	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:74)
      	at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39)
      	at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31)
      	at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16)
      	at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35)
      	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:205)
      	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:143)
      

      When subtask is moved to Done and clicking on the cog icon for the parent task, it will throws the same exception. Steps to reproduce:

      1. create a issue and subtask for the issue
      2. in the Classic Task Board, click on the "Hide Done Issue" . Refer to screenshot HideDoneIssue1.png
      3. move the subtask to "Done".
      4. click on the Cog icon for the parent task. Refer to screenshot HideDoneIssue2.png
      5. exception thrown as in the HideDoneIssue3.png and stack trace in JIRA logs:
        2012-11-29 22:47:14,474 http-8283-3 ERROR admin 1367x663x1 bxjv5c 127.0.0.1 /secure/GetTBCardMenu.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.ArrayIndexOutOfBoundsException: -1
        java.lang.ArrayIndexOutOfBoundsException: -1
        	at java.util.ArrayList.get(ArrayList.java:324)
        	at com.pyxis.greenhopper.jira.boards.TaskBoard.getStepBoard(TaskBoard.java:240)
        	at com.pyxis.greenhopper.jira.actions.TaskBoardAction.getSelectedStepBoard(TaskBoardAction.java:326)
        ...
        

        to fix this, in GreenHopper 6.0.x, click on the "Hide Done Issues" again.

      I believe that this error page should be handled gracefully to let users know that this is not a bug, but an error that no issues are created in the project yet.

      Attachments

        1. HideDoneIssue1.png
          HideDoneIssue1.png
          42 kB
        2. HideDoneIssue2.png
          HideDoneIssue2.png
          44 kB
        3. HideDoneIssue3.png
          HideDoneIssue3.png
          104 kB

        Activity

          People

            Unassigned Unassigned
            jalex Justin Alex [Atlassian] (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: