aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-09-03 14:40:22 +0200
committerMartin Stockhammer <martin_s@apache.org>2019-09-03 14:40:22 +0200
commitebf95723a5399535ff8175121625e933d99a27c0 (patch)
tree044ba96be2dd0343e577eaeb740f773f711af113 /archiva-modules/archiva-web
parentc7fb08d2cb8b8fac9e36707e03369c5e83def7a6 (diff)
downloadarchiva-ebf95723a5399535ff8175121625e933d99a27c0.tar.gz
archiva-ebf95723a5399535ff8175121625e933d99a27c0.zip
Modifying NetworkProxy class. Adding tests.
Diffstat (limited to 'archiva-modules/archiva-web')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java
index bf13b34c0..53522ff99 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java
@@ -167,7 +167,7 @@ public class DefaultRemoteRepositoriesService
proxyInfo.setHost(networkProxy.getHost());
proxyInfo.setPort(networkProxy.getPort());
proxyInfo.setUserName(networkProxy.getUsername());
- proxyInfo.setPassword(networkProxy.getPassword());
+ proxyInfo.setPassword(new String(networkProxy.getPassword()));
}
String url = StringUtils.stripEnd(remoteRepository.getUrl(), "/");
wagon.connect(new Repository(remoteRepository.getId(), url), proxyInfo);