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

More graceful way to handle exception page

    XMLWordPrintable

Details

    Description

      It would be better if we can have a more graceful error page when an exception is caught.

      For example:
      If user is not logged in and he/she is trying to view a page by a url http://jira.atlassian.com/secure/ManageWatchers!default.jspa?id=12345, they will get a page full with exception.

      com.atlassian.jira.exception.IssueNotFoundException: Issue with id '12345' or key 'null' could not be found in the system
      	at com.atlassian.jira.web.action.issue.AbstractIssueSelectAction.getIssue()Lorg/ofbiz/core/entity/GenericValue;(AbstractIssueSelectAction.java:85)
      	at com.atlassian.jira.web.action.issue.ManageWatchers.isCanViewWatcherList()Z(ManageWatchers.java:218)
      	at com.atlassian.jira.web.action.issue.ManageWatchers.doDefault()Ljava/lang/String;(ManageWatchers.java:41)
      	at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava/lang/Object;ILjava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)
      	at jrockit.reflect.NativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Optimized Method)
      	at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Optimized Method)
      	at java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;I)Ljava/lang/Object;(Optimized Method)
      	...
      

      Ideally, we can have a page that says:-

       You are not logged in, and do not have the permissions required to manage the watchers as a guest.
      
      To manage the watchers first login or signup for an account. 
      

      Cheers,
      Terry

      Attachments

        Issue Links

          Activity

            People

              mtokar Michael Tokar
              terry.ooi Terry [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: