Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-65460

System Dashboard throws an error when accessed anonymously if external gadgets exists

    XMLWordPrintable

Details

    Description

      Summary

      System Dashboard throws error when accessed anonymously if external gadgets exists

      Environment

      Issue reproduced in versions 1000.133.0 & 1000.140.0

      Steps to Reproduce

      1. Add an external gadget provided by an atlassian-connect add-on to the dashboard (not all external gadgets may be affected by this)
      2. Access the dashboard anonymously

      Expected Results

      External dashboard shows with all the gadgets.

      Actual Results

      The below error is thrown:

      2016-07-07 18:38:31.447287500 2016-07-07 18:38:31,443 http-nio-2990-exec-9 ERROR anonymous 1118x4550x1 f9503s 193.240.188.96 /secure/Dashboard.jspa [o.a.c.c.C.[.[.[.[.secure.views.dashboard_jsp]] Servlet.service() for servlet jsp.secure.views.dashboard_jsp threw exception
      2016-07-07 18:38:31.447289500 java.lang.NullPointerException
      at com.atlassian.plugin.connect.jira.web.context.JiraModuleContextFilter$8.hasPermission(JiraModuleContextFilter.java:184) [?:?]
      at com.atlassian.plugin.connect.jira.web.context.JiraModuleContextFilter$8.hasPermission(JiraModuleContextFilter.java:175) [?:?]
      at com.atlassian.plugin.connect.spi.web.context.AbstractModuleContextFilter.lambda$filter$0(AbstractModuleContextFilter.java:58) [?:?]
      at com.atlassian.plugin.connect.spi.web.context.AbstractModuleContextFilter$$Lambda$2064/22927089.apply(Unknown Source) [?:?]
      at com.google.common.collect.Iterators.all(Iterators.java:697) [closure-compiler-v20151216.jar:?]
      at com.google.common.collect.Iterables.all(Iterables.java:632) [closure-compiler-v20151216.jar:?]
      at com.atlassian.plugin.connect.spi.web.context.AbstractModuleContextFilter.filter(AbstractModuleContextFilter.java:58) [?:?]
      at com.atlassian.plugin.connect.jira.web.dashboard.ConnectDashboardItemModuleDescriptor$ConnectDashboardItemModule.renderContent(ConnectDashboardItemModuleDescriptor.java:119) [?:?]
      at com.atlassian.gadgets.dashboard.internal.rest.representations.RepresentationFactoryImpl.renderString(RepresentationFactoryImpl.java:139) [?:?]
      at com.atlassian.gadgets.dashboard.internal.rest.representations.RepresentationFactoryImpl.access$000(RepresentationFactoryImpl.java:36) [?:?]
      at com.atlassian.gadgets.dashboard.internal.rest.representations.RepresentationFactoryImpl$2.createLocalGadgetRepresentation(RepresentationFactoryImpl.java:115) [?:?]
      at com.atlassian.gadgets.dashboard.internal.rest.representations.RepresentationFactoryImpl$2.visit(RepresentationFactoryImpl.java:93) [?:?]
      at com.atlassian.gadgets.dashboard.internal.rest.representations.RepresentationFactoryImpl$2.visit(RepresentationFactoryImpl.java:76) [?:?]
      at com.atlassian.gadgets.dashboard.internal.impl.DashboardItem.accept(DashboardItem.java:113) [?:?]
      at com.atlassian.gadgets.dashboard.internal.rest.representations.RepresentationFactoryImpl.createGadgetRepresentation(RepresentationFactoryImpl.java:76) [?:?]
      

      Workaround

      No workaround available for the time being

      Attachments

        Activity

          People

            Unassigned Unassigned
            malonso@atlassian.com Miguel Alonso
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: