]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-14733 Fix duplicate default credentials warnings in logs
authorWouter Admiraal <45544358+wouter-admiraal-sonarsource@users.noreply.github.com>
Thu, 22 Apr 2021 15:09:23 +0000 (17:09 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 22 Apr 2021 20:03:34 +0000 (20:03 +0000)
server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java
server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java

index 0b2cdeb039389b917f7da446c8c00a4533676e93..3b07f14888b7706c821a138a4bcffb228d8f7c67 100644 (file)
@@ -19,6 +19,7 @@
  */
 package org.sonar.server.platform.platformlevel;
 
+import java.util.List;
 import org.sonar.alm.client.TimeoutConfigurationImpl;
 import org.sonar.alm.client.azure.AzureDevOpsHttpClient;
 import org.sonar.alm.client.bitbucket.bitbucketcloud.BitbucketCloudRestClient;
@@ -144,6 +145,7 @@ import org.sonar.server.platform.ws.ServerWs;
 import org.sonar.server.platform.ws.SystemWsModule;
 import org.sonar.server.plugins.PluginDownloader;
 import org.sonar.server.plugins.PluginUninstaller;
+import org.sonar.server.plugins.PluginsRiskConsentFilter;
 import org.sonar.server.plugins.ServerExtensionInstaller;
 import org.sonar.server.plugins.ws.AvailableAction;
 import org.sonar.server.plugins.ws.CancelAllAction;
@@ -180,7 +182,6 @@ import org.sonar.server.qualityprofile.QProfileTreeImpl;
 import org.sonar.server.qualityprofile.RuleActivator;
 import org.sonar.server.qualityprofile.index.ActiveRuleIndexer;
 import org.sonar.server.qualityprofile.ws.QProfilesWsModule;
-import org.sonar.server.plugins.PluginsRiskConsentFilter;
 import org.sonar.server.root.ws.RootWsModule;
 import org.sonar.server.rule.CommonRuleDefinitionsImpl;
 import org.sonar.server.rule.RuleCreator;
@@ -234,7 +235,6 @@ import org.sonar.server.ws.ws.WebServicesWsModule;
 
 import static org.sonar.core.extension.CoreExtensionsInstaller.noAdditionalSideFilter;
 import static org.sonar.core.extension.PlatformLevelPredicates.hasPlatformLevel4OrNone;
-import java.util.List;
 
 public class PlatformLevel4 extends PlatformLevel {
 
@@ -251,7 +251,8 @@ public class PlatformLevel4 extends PlatformLevel {
       IndexCreator.class,
       MetadataIndexDefinition.class,
       MetadataIndexImpl.class,
-      EsDbCompatibilityImpl.class);
+      EsDbCompatibilityImpl.class,
+      DefaultAdminCredentialsVerifierImpl.class);
 
     addIfCluster(NodeHealthModule.class);
 
@@ -356,7 +357,6 @@ public class PlatformLevel4 extends PlatformLevel {
       GitLabModule.class,
       LdapModule.class,
       SamlModule.class,
-      DefaultAdminCredentialsVerifierImpl.class,
       DefaultAdminCredentialsVerifierNotificationTemplate.class,
       DefaultAdminCredentialsVerifierNotificationHandler.class,
 
index dd1d47e6ea372ca1dd8ff457553e648bd29ea673..fab705046ab9bd64df4cf8e602a308643e737349 100644 (file)
@@ -23,7 +23,6 @@ import org.sonar.api.utils.log.Loggers;
 import org.sonar.core.platform.EditionProvider;
 import org.sonar.core.platform.PlatformEditionProvider;
 import org.sonar.server.app.ProcessCommandWrapper;
-import org.sonar.server.authentication.DefaultAdminCredentialsVerifierImpl;
 import org.sonar.server.ce.queue.CeQueueCleaner;
 import org.sonar.server.es.IndexerStartupTask;
 import org.sonar.server.platform.ServerLifecycleNotifier;
@@ -73,7 +72,6 @@ public class PlatformLevelStartup extends PlatformLevel {
       RenameDeprecatedPropertyKeys.class,
       CeQueueCleaner.class,
       UpgradeSuggestionsCleaner.class,
-      DefaultAdminCredentialsVerifierImpl.class,
       PluginConsentVerifier.class);
 
     // RegisterServletFilters makes the WebService engine of Level4 served by the MasterServletFilter, therefore it