diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2017-01-11 10:55:48 +0100 |
---|---|---|
committer | Julien HENRY <henryju@yahoo.fr> | 2017-01-12 11:26:48 +0100 |
commit | 581c2d5d3ed39c3b58fd5ff4deed0ebcf8d86136 (patch) | |
tree | a657c54cb71bb71ac374452381648137b51c3bd2 /sonar-scanner-engine | |
parent | c82f3ab5c6e65a6ab65c743e2645d3c5345fffe6 (diff) | |
download | sonarqube-581c2d5d3ed39c3b58fd5ff4deed0ebcf8d86136.tar.gz sonarqube-581c2d5d3ed39c3b58fd5ff4deed0ebcf8d86136.zip |
SONAR-8573 Missing WS parameter encoding
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/repository/settings/DefaultSettingsLoader.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/repository/settings/DefaultSettingsLoader.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/repository/settings/DefaultSettingsLoader.java index 5e72ecf04ce..d8b69d84bc7 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/repository/settings/DefaultSettingsLoader.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/repository/settings/DefaultSettingsLoader.java @@ -33,6 +33,7 @@ import org.sonar.api.utils.log.Logger; import org.sonar.api.utils.log.Loggers; import org.sonar.api.utils.log.Profiler; import org.sonar.scanner.bootstrap.ScannerWsClient; +import org.sonar.scanner.util.ScannerUtils; import org.sonarqube.ws.Settings.FieldValues.Value; import org.sonarqube.ws.Settings.Setting; import org.sonarqube.ws.Settings.ValuesWsResponse; @@ -52,7 +53,7 @@ public class DefaultSettingsLoader implements SettingsLoader { String url = "api/settings/values.protobuf"; Profiler profiler = Profiler.create(LOG); if (componentKey != null) { - url += "?component=" + componentKey; + url += "?component=" + ScannerUtils.encodeForUrl(componentKey); profiler.startInfo("Load settings for component '" + componentKey + "'"); } else { profiler.startInfo("Load global settings"); |