]> source.dussan.org Git - archiva.git/commitdiff
Fixing error with bad repository path
authorMartin Stockhammer <martin_s@apache.org>
Sat, 25 Dec 2021 16:38:01 +0000 (17:38 +0100)
committerMartin Stockhammer <martin_s@apache.org>
Sat, 25 Dec 2021 16:38:01 +0000 (17:38 +0100)
archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java

index 54961b97b1381cf98b42f44cdc08a4b683e84e48..b9db3042e49116726db831d75502d7d914c3a0e7 100644 (file)
@@ -854,7 +854,7 @@ public class DefaultArchivaConfiguration
             Path repoLocation = Paths.get(repoPath);
 
             if (Files.exists(repoLocation) && Files.isDirectory(repoLocation) && !repoPath.endsWith(
-                    "data/repositories/" + repo.getId())) {
+                    "/repositories/" + repo.getId())) {
                 repo.setLocation(repoPath + "/data/repositories/" + repo.getId());
             }
         }