Skip to content
Snippets Groups Projects
Commit c8c09349 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

handle url encoded paths

parent a8ac375c
Branches
Tags
No related merge requests found
Pipeline #4069 passed
......@@ -8,6 +8,9 @@ import org.openqa.selenium.support.ui.WebDriverWait;
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
......@@ -91,6 +94,15 @@ public class IntegrationTestHelper
path = path.substring(1);
}
try
{
path = URLDecoder.decode(path, StandardCharsets.UTF_8.toString());
}
catch(UnsupportedEncodingException ex)
{
throw new RuntimeException(ex.getCause());
}
driver.get(url + "/settings/database/requestImport");
// upload database
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment