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

Duplicate entries can exist in active_rules table whereas it should not

    XMLWordPrintable

    Details

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

      Description

      For some reason, duplicate entries can exist in the active_rules table where this should not be possible. This can break the display of a quality profile with the following error:

      java.lang.NullPointerException
              at org.sonar.server.qualityprofile.QProfileRuleLookup.search(QProfileRuleLookup.java:135)
              at org.sonar.server.qualityprofile.QProfiles.searchProfileRules(QProfiles.java:182)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:601)
              ...
      

      We should make a migration do remove such entries

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.lancelot Julien Lancelot
              Reporter:
              fabemn OLD - Fabrice Bellingard
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: