You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2019/11/14 13:51:18 UTC
[karaf-cave] branch master updated: [KARAF-6518] - Error on create
repository with custom location
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf-cave.git
The following commit(s) were added to refs/heads/master by this push:
new 51ee46b [KARAF-6518] - Error on create repository with custom location
new 4f91783 Merge pull request #30 from fpapon/KARAF-6518
51ee46b is described below
commit 51ee46b4557aff548804575bc816a65439b0efdc
Author: Francois Papon <fr...@openobject.fr>
AuthorDate: Wed Nov 13 15:30:47 2019 +0100
[KARAF-6518] - Error on create repository with custom location
---
.../org/apache/karaf/cave/repository/service/RepositoryServiceImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/repository/service/src/main/java/org/apache/karaf/cave/repository/service/RepositoryServiceImpl.java b/repository/service/src/main/java/org/apache/karaf/cave/repository/service/RepositoryServiceImpl.java
index 37e2900..6a62761 100644
--- a/repository/service/src/main/java/org/apache/karaf/cave/repository/service/RepositoryServiceImpl.java
+++ b/repository/service/src/main/java/org/apache/karaf/cave/repository/service/RepositoryServiceImpl.java
@@ -178,7 +178,7 @@ public class RepositoryServiceImpl implements RepositoryService {
if (url == null || url.isEmpty()) {
url = httpContext + "/" + name;
}
- if (proxy == null || proxy.isEmpty()) {
+ if (location == null || location.isEmpty()) {
location = new File(baseStorage, name).getAbsolutePath();
}
// create the repository storage