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

anonymous users, filters based on "favourites only" in global dashboards, cause exception "Can not render widget filter: undefined method `favourite_ids' for nil:NilClass"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2, 3.2.1
    • Fix Version/s: 3.4
    • Component/s: Measures
    • Labels:
      None
    • Environment:
      Linux 2.6.18-274.3.1.el5.centos.plus #1 SMP Wed Sep 7 05:38:58 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

      Description

      Sonar is configured with security, but allows anonymous users to see the main dashboards, like i.e. "Projects". Issue:
      1) As admin, configure an additional (shared) filter for the "Projects" global dashboard
      2) Use the project-selection option "Favourites only" and display as table (whatever values)
      3) Logout
      4) As an anonymous user, you get a "An error occurred while trying to display the widget "Filter". Please contact the administrator" on the Projects Dashboard. The sonar-log contains:

      Can not render widget filter: undefined method `favourite_ids' for nil:NilClass /WEB-INF/app/models/filters.rb:37:in `execute' compiled-template:3:in '_run_inline_1031195290_locals_dashboard_configuration_widget_widget_properties' org/jruby/RubyKernel.java:2056:in `send'

        Attachments

          Activity

            People

            Assignee:
            simon.brandhof Simon Brandhof (Inactive)
            Reporter:
            riccardo Riccardo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: