Uploaded image for project: 'JIRA Server (including JIRA Core)'
  1. JIRA Server (including JIRA Core)
  2. JRASERVER-42411

Browsing Versions in anonymous mode hits a 500 error

    Details

    • Regular Expression:
      com.google.template.soy.tofu.SoyTofuException\: In template JIRA.Projects.Templates.page\: In \'print\' tag\, expression \"\$sidebarContent\" evaluates to undefined.

      Description

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      Anonymous users CAN access JIRA Agile Releases section correctly but get a 500 error when accessing a specific version with the following error:

      Cause
      Referer URL: Unknown
      com.google.template.soy.tofu.SoyTofuException: In template JIRA.Projects.Templates.page: In 'print' tag, expression "$sidebarContent" evaluates to undefined.
      com.google.template.soy.tofu.SoyTofuException: In template JIRA.Projects.Templates.page: In 'print' tag, expression "$sidebarContent" evaluates to undefined.
      	at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341)
      	at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300)
      	at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56)
      	at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:427)
      	at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:118)
      	at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:52)
      	at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:45)
      	at com.atlassian.jira.web.dispatcher.JiraSoyViewDispatcher.dispatch(JiraSoyViewDispatcher.java:36)
      	at com.atlassian.jira.web.dispatcher.JiraWebworkViewDispatcher.dispatchViaSoyView(JiraWebworkViewDispatcher.java:149)
      	at com.atlassian.jira.web.dispatcher.JiraWebworkViewDispatcher.dispatchView(JiraWebworkViewDispatcher.java:66)
      	at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:204)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      ....
      

      Logged in users can view the section correctly.

      Scenario:
      Project Permissions configuration allows Group(Anyone) to "Browse Projects" and "View Development Tools" so it should grant public access to the Releases new section and the Versions.

      Cause:
      The new sidebar panel requires user.name() to be constructed and hits a NullPointerException when the user is anonymous.

      A fix is already in the works and will be released soon.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mfernandezbadii Mauro Ezequiel Fernandez Badii
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: