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

When updating custom rule parameters, new active rule parameters are created instead of being updated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.4
    • Fix Version/s: 5.6
    • Component/s: Quality Profile
    • Labels:

      Description

      Steps to reproduce :

      • Create a custom rule from a template rule that have more than one parameter (for instance : squid:ArchitecturalConstraint)
      • Active this rule on a profile
      • Update the custom rule parameters
        -> New active rule parameters are created instead of updating existing ones.

      Technical details :
      The issue is in RuleUpdater.deleteOrUpdateParameters(), and the test RuleUpdaterMediumTest.update_active_rule_parameters_when_updating_custom_rule already cover this use case (but check is commented).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Due:
                Created:
                Updated:
                Resolved: