JIRA Charting gadgets cannot be viewed anonymously

Description

Basically is the same issue describe in here: https://ecosystem.atlassian.net/browse/JCHART-440

I have done further testing based in JIRA 6.0 and JIRA 6.0.1 wth JIRA Charting Plugin v1.12 and 1.16 both still having the same issue.

Below is steps to reproduce the problem:

  • Create two project Test1 & Test2

  • Create 1 issue with original estimated time each

  • Both of the project is using Default Permission Scheme

  • Edit the Browse Projects permission to Group: Anyone so that anonymous user can see both of the project

  • Then edit the User 'Interface > System Dashboard' to include 2 workload pie chart gadget (1 pointing to Test1 project and another to Test2 project)

  • View the dashboard while still login to ensure both the pie chart is showing.

  • Logout and view the dashboard as anonymous and you will get the following:

and also it will produce the following stack traces in atlassian-jira.log file:

1 2 3 4 5 6 2013-06-04 23:32:54,483 http-bio-8066-exec-25 ERROR anonymous 1412x86x3 2vh78k 0:0:0:0:0:0:0:1 /rest/gadget/1.0/piechart/generate [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service java.lang.NullPointerException at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187) at com.atlassian.jira.charts.piechart.PieChartUrlGeneratorFactory.<init>(PieChartUrlGeneratorFactory.java:41) at com.atlassian.jira.charts.PieChart.generateChart(PieChart.java:89) at com.atlassian.jira.charts.DefaultChartFactory.generatePieChart(DefaultChartFactory.java:91)

Side Note: This problem is not reproducible in JIRA 5.2.11

Environment

  • JIRA 6.0.1

  • JIRA 6.0

Testing Notes

None

Status

Assignee

Unassigned

Reporter

Daryl Chuah

Labels

None

Add-on Type

None

Team

None

CC

None

Risk factor

None

QA Kickoff Status

None

QA Demo Status

None

Components

Affects versions

1.12

Priority

Major