changeset 587:3117f4933528

Bugfixes
author Devel 2
date Tue, 03 Oct 2017 09:47:27 +0200
parents 7e7e22b98955
children c6bdc607c25b
files stress-tester-qlik/src/main/java/com/passus/st/qlik/QlikWebsocketClient.java stress-tester/src/main/java/com/passus/st/client/http/ReporterFileDestination.java
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester-qlik/src/main/java/com/passus/st/qlik/QlikWebsocketClient.java	Mon Oct 02 15:22:29 2017 +0200
+++ b/stress-tester-qlik/src/main/java/com/passus/st/qlik/QlikWebsocketClient.java	Tue Oct 03 09:47:27 2017 +0200
@@ -111,7 +111,7 @@
                 return false;
             }
 
-            String appUrl = url + URLEncoder.encode(docId, "UTF-8");
+            String appUrl = url + URLEncoder.encode(docId, "UTF-8").replaceAll("\\+", "%20");
             try (Session session = openSession(client, appUrl, endpoint)) {
                 Future<JSONObject> openDocFuture = endpoint.sendMessage(proto.createOpenDoc(docId));
                 JSONObject openDocResponse = openDocFuture.get();
--- a/stress-tester/src/main/java/com/passus/st/client/http/ReporterFileDestination.java	Mon Oct 02 15:22:29 2017 +0200
+++ b/stress-tester/src/main/java/com/passus/st/client/http/ReporterFileDestination.java	Tue Oct 03 09:47:27 2017 +0200
@@ -34,8 +34,8 @@
     }
 
     public ReporterFileDestination(File directory) throws IOException {
-        if (!directory.exists()) {
-            directory.mkdirs();
+        if (!directory.exists() && !directory.mkdirs()) {
+            throw new IOException("Unable to create directory \"" + directory + "\".");
         }
 
         if (!directory.isDirectory()) {