karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject [karaf] branch karaf-4.1.x updated: [KARAF-5704]boot feature fails to install if bundle is located in data/tmp folder
Date Wed, 26 Sep 2018 03:36:56 GMT
This is an automated email from the ASF dual-hosted git repository.

ffang pushed a commit to branch karaf-4.1.x
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/karaf-4.1.x by this push:
     new 81dddcc  [KARAF-5704]boot feature fails to install if bundle is located in data/tmp
folder
81dddcc is described below

commit 81dddccb65b40d295c76d657eec075e3f947ef44
Author: Freeman Fang <freeman.fang@gmail.com>
AuthorDate: Wed Sep 26 11:36:41 2018 +0800

    [KARAF-5704]boot feature fails to install if bundle is located in data/tmp folder
---
 .../karaf/features/internal/download/impl/SimpleDownloadTask.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/features/core/src/main/java/org/apache/karaf/features/internal/download/impl/SimpleDownloadTask.java
b/features/core/src/main/java/org/apache/karaf/features/internal/download/impl/SimpleDownloadTask.java
index b4e788a..7441dce 100644
--- a/features/core/src/main/java/org/apache/karaf/features/internal/download/impl/SimpleDownloadTask.java
+++ b/features/core/src/main/java/org/apache/karaf/features/internal/download/impl/SimpleDownloadTask.java
@@ -100,7 +100,10 @@ public class SimpleDownloadTask extends AbstractRetryableDownloadTask
{
         url = DownloadManagerHelper.removeInlinedMavenRepositoryUrl(url);
         int unixPos = url.lastIndexOf('/');
         int windowsPos = url.lastIndexOf('\\');
-        return url.substring(Math.max(unixPos, windowsPos) + 1);
+        url = url.substring(Math.max(unixPos, windowsPos) + 1);
+        url = Integer.toHexString(url.hashCode()) + "-" + url;
+        return url;
+
     }
 
     protected File downloadBlueprintOrSpring() throws Exception {


Mime
View raw message