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

External rules are not removed when no more provided by analyzer

    XMLWordPrintable

    Details

    • Edition:
      Community
    • Production Notes:
      None

      Description

      When an external rule is no more provided by the analyzer, it's still possible to do some actions on linked issues :

      Trying to execute an action on such issue will fail.

      In the web.log there is this Exception:

      java.lang.NullPointerException: null
      	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:210)
      	at com.google.common.collect.Ordering.immutableSortedCopy(Ordering.java:844)
      	at org.sonar.db.DatabaseUtils.toUniqueAndSortedList(DatabaseUtils.java:195)
      	at org.sonar.db.DatabaseUtils.toUniqueAndSortedPartitions(DatabaseUtils.java:184)
      	at org.sonar.db.DatabaseUtils.executeLargeInputs(DatabaseUtils.java:133)
      	at org.sonar.db.DatabaseUtils.executeLargeInputs(DatabaseUtils.java:119)
      	at org.sonar.db.DatabaseUtils.executeLargeInputs(DatabaseUtils.java:108)
      	at org.sonar.db.rule.RuleDao.selectDefinitionByIds(RuleDao.java:105)
      	at org.sonar.server.issue.ws.SearchResponseLoader.loadRules(SearchResponseLoader.java:171)
      	at org.sonar.server.issue.ws.SearchResponseLoader.load(SearchResponseLoader.java:95)
      	at org.sonar.server.issue.ws.OperationResponseWriter.write(OperationResponseWriter.java:42)
      	at org.sonar.server.issue.ws.DoTransitionAction.handle(DoTransitionAction.java:104)
      	at org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:110)
      	at org.sonar.server.ws.WebServiceFilter.doFilter(WebServiceFilter.java:88)
      	at org.sonar.server.platform.web.MasterServletFilter$GodFilterChain.doFilter(MasterServletFilter.java:126)
      	at org.sonar.server.platform.web.MasterServletFilter.doFilter(MasterServletFilter.java:95)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pierre.guillot Pierre Guillot
              Reporter:
              alexandre.gigleux Alexandre Gigleux
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: