diff options
author | Belen Pruvost <belen.pruvost@sonarsource.com> | 2021-07-20 13:56:34 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-07-27 20:03:02 +0000 |
commit | 9453e6a5c554f4e29309c31466e1c1a102adc61c (patch) | |
tree | c991bb4ecba60958cecfeb60cd96054604dba7b8 /server/sonar-webserver-api | |
parent | ce304c7995552e8d6af222db2b30ae230288815b (diff) | |
download | sonarqube-9453e6a5c554f4e29309c31466e1c1a102adc61c.tar.gz sonarqube-9453e6a5c554f4e29309c31466e1c1a102adc61c.zip |
SONAR-15142 - Log Permission, Plugin, Secret Key, License and Settings
Diffstat (limited to 'server/sonar-webserver-api')
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-webserver-api/src/main/java/org/sonar/server/plugins/PluginConsentVerifier.java b/server/sonar-webserver-api/src/main/java/org/sonar/server/plugins/PluginConsentVerifier.java index 494cec61a4d..70e31993887 100644 --- a/server/sonar-webserver-api/src/main/java/org/sonar/server/plugins/PluginConsentVerifier.java +++ b/server/sonar-webserver-api/src/main/java/org/sonar/server/plugins/PluginConsentVerifier.java @@ -54,7 +54,7 @@ public class PluginConsentVerifier implements Startable { if (hasExternalPlugins && NOT_ACCEPTED == PluginRiskConsent.valueOf(property.getValue())) { addWarningInSonarDotLog(); property.setValue(REQUIRED.name()); - dbClient.propertiesDao().saveProperty(session, property); + dbClient.propertiesDao().saveProperty(session, property, null, null); session.commit(); } else if (!hasExternalPlugins && REQUIRED == PluginRiskConsent.valueOf(property.getValue())) { dbClient.propertiesDao().deleteGlobalProperty(PLUGINS_RISK_CONSENT, session); diff --git a/server/sonar-webserver-api/src/main/java/org/sonar/server/project/ProjectDefaultVisibility.java b/server/sonar-webserver-api/src/main/java/org/sonar/server/project/ProjectDefaultVisibility.java index 4b452708e60..aabae7c3665 100644 --- a/server/sonar-webserver-api/src/main/java/org/sonar/server/project/ProjectDefaultVisibility.java +++ b/server/sonar-webserver-api/src/main/java/org/sonar/server/project/ProjectDefaultVisibility.java @@ -46,6 +46,6 @@ public class ProjectDefaultVisibility { public void set(DbSession dbSession, Visibility visibility) { dbClient.propertiesDao().saveProperty(dbSession, new PropertyDto() .setKey(PROJECTS_DEFAULT_VISIBILITY_PROPERTY_NAME) - .setValue(visibility.getLabel())); + .setValue(visibility.getLabel()), null, null); } } |