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

NullPointerException is thrown when linking to a "Single Level Group By Report" bookmark link without logging in to JIRA

    XMLWordPrintable

Details

    Description

      Steps to re-produce:

      1. Create a bookmark link to a "Single Level Group By Report"
      2. Access this link without logging in to JIRA. The following exception is displayed:

      ...
      java.lang.NullPointerException
      	at com.atlassian.jira.issue.search.util.LuceneQueryCreator.getQueryFromSearchRequest(LuceneQueryCreator.java:68)
      	at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:119)
      	at com.atlassian.jira.plugin.report.impl.SingleLevelGroupByReport.searchMapIssueKeys(SingleLevelGroupByReport.java:73)
      	at com.atlassian.jira.plugin.report.impl.SingleLevelGroupByReport.getOptions(SingleLevelGroupByReport.java:57)
      	at com.atlassian.jira.plugin.report.impl.SingleLevelGroupByReport.generateReportHtml(SingleLevelGroupByReport.java:101)
      ...
      

      The main reason to this problem is the user is not logged-in to JIRA and does not have the valid permission to perform the action. JIRA should handle those exception and redirect the user to log-in panel.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cychan Chai Ying Chan [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: