java/com.sap.sailing.landscape.ui/src/com/sap/sailing/landscape/ui/server/LandscapeManagementWriteServiceImpl.java
... ...
@@ -707,7 +707,7 @@ public class LandscapeManagementWriteServiceImpl extends ResultCachingProxiedRem
707 707
Landscape.WAIT_FOR_PROCESS_TIMEOUT, Optional.ofNullable(optionalKeyName),
708 708
privateKeyEncryptionPassphrase);
709 709
final URL requestURL = new URL(getThreadLocalRequest().getRequestURL().toString());
710
- final URL continuationBaseURL = new URL(requestURL.getProtocol(), requestURL.getHost(), requestURL.getPort(), "/");
710
+ final URL continuationBaseURL = new URL(requestURL.getProtocol(), requestURL.getHost(), requestURL.getPort(), "");
711 711
getLandscapeService()
712 712
.createArchiveReplicaSet(regionId, replicaSetName, instanceType, releaseNameOrNullForLatestMaster,
713 713
databaseConfiguration, optionalKeyName, privateKeyEncryptionPassphrase,
java/com.sap.sse.test/src/com/sap/sse/test/URLTest.java
... ...
@@ -0,0 +1,18 @@
1
+package com.sap.sse.test;
2
+
3
+import static org.junit.jupiter.api.Assertions.assertEquals;
4
+import static org.junit.jupiter.api.Assertions.assertFalse;
5
+
6
+import java.net.MalformedURLException;
7
+import java.net.URL;
8
+
9
+import org.junit.jupiter.api.Test;
10
+
11
+public class URLTest {
12
+ @Test
13
+ public void testEmptyFile() throws MalformedURLException {
14
+ final URL url = new URL("https", "example.com", "");
15
+ assertEquals("", url.getFile());
16
+ assertFalse(url.toString().endsWith("/"));
17
+ }
18
+}