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

Cannot bulk activate/deactivate rules when using a web context

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.7, 6.7.1
    • Fix Version/s: 6.7.2, 7.0
    • Component/s: Rules, UX/UI, Web
    • Labels:
      None

      Description

      When sonar.web.context is set in sonar.properties, the UI freezes whenever one tries to bulk activate/deactivate rules in a Quality Profile. Page can be refreshed, but the activation/deactivation is never taken into account.

      Reproducer:

      • set sonar.web.context in sonar.properties (e.g. sonar.web.context=foo )
      • start SonarQube
      • make a copy of a built-in Quality Profile
      • choose to Activate More rules in that new QP
      • on the Rules page, go Bulk change , Activate In and Apply

      Symptom: Apply button gets greyed, and nothing moves from there on. One can refresh the page, but the rules are still not activated.

      Notes:

      • same symptoms when doing bulk deactivation instead of activation
      • no problem when activating/deactivating one rule at a time
      • for bulk operations, browser inspector shows that the JavaScript client is calling an invalid URL, with a 'double-context' . Illustration @ double_context.png .

        Attachments

          Activity

            People

            • Assignee:
              stas.vilchik Stas Vilchik (Inactive)
              Reporter:
              nicolas.bontoux Nicolas Bontoux
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: