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

Violation tracking mechanism should load missing rule IDs

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5
    • Component/s: Issues
    • Labels:
      None

      Description

      Rationale:
      The API offers the possibility to use either Rule#create(...) or RuleFinder#findByKey(...) to get a Rule object when creating a violation in a sensor.
      The problem is that when Rule#create(...) is used, the newly created Rule object has a null ID: consequently, the violation tracking mechanism can't work anymore for the corresponding violations as it uses Rule#getId() to compare violations.

        Attachments

          Activity

            People

            Assignee:
            fabemn OLD - Fabrice Bellingard
            Reporter:
            fabemn OLD - Fabrice Bellingard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: