Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-5452

Do not display action plan widget on non project dashboard

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6
    • Fix Version/s: 4.5
    • Component/s: None
    • Labels:
      None

      Description

      For instance on a module dahsboard, the action plan widget fails to render with the error "An error occurred while trying to display the widget "action_plans". Please contact the administrator."

      On backend side, the exception is :

      2014.07.11 15:15:06 ERROR [rails]  Can not render widget action_plans: org.sonar.server.exceptions.ForbiddenException: Insufficient privileges
      2014.07.11 15:15:06 ERROR [rails]    org.sonar.server.user.UserSession.checkProjectPermission(UserSession.java:158)
      2014.07.11 15:15:06 ERROR [rails]    org.sonar.server.issue.actionplan.ActionPlanService.checkUserCanAccessProject(ActionPlanService.java:191)
      2014.07.11 15:15:06 ERROR [rails]    org.sonar.server.issue.actionplan.ActionPlanService.findActionPlanStats(ActionPlanService.java:148)
      2014.07.11 15:15:06 ERROR [rails]    org.sonar.server.issue.InternalRubyIssueService.findActionPlanStats(InternalRubyIssueService.java:257)
      

      The action plan widget should not be displayed on none project dashboard, as it makes no sense.

        Attachments

          Activity

            People

            Assignee:
            julien.lancelot Julien Lancelot
            Reporter:
            julien.lancelot Julien Lancelot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: