From ba7b1a9138545b8b83466e2d643e8ad6279f1424 Mon Sep 17 00:00:00 2001 From: Gabriel Einsdorf Date: Mon, 26 Jun 2023 17:07:20 +0200 Subject: [PATCH] Issue #2589 Strip asterisk (*) characters from URIs This character is illegal in Windows file paths. (cherry picked from commit dbb779b155550ae53099b218463ee7b1d06c01cd) --- .../eclipse/tycho/p2maven/transport/SharedHttpCacheStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-maven-plugin/src/main/java/org/eclipse/tycho/p2maven/transport/SharedHttpCacheStorage.java b/p2-maven-plugin/src/main/java/org/eclipse/tycho/p2maven/transport/SharedHttpCacheStorage.java index d5afae26ce..d29a3ea36e 100644 --- a/p2-maven-plugin/src/main/java/org/eclipse/tycho/p2maven/transport/SharedHttpCacheStorage.java +++ b/p2-maven-plugin/src/main/java/org/eclipse/tycho/p2maven/transport/SharedHttpCacheStorage.java @@ -151,7 +151,7 @@ public File getCacheFile(HttpTransportFactory transportFactory) private synchronized CacheLine getCacheLine(URI uri) { String cleanPath = uri.normalize().toASCIIString().replace(':', '/').replace('?', '/').replace('&', '/') - .replaceAll("/+", "/"); + .replace('*', '/').replaceAll("/+", "/"); if (cleanPath.endsWith("/")) { // simulate accessing this as a folder... // this can happen in case of a redirect even though its quite clumsy