Skip to content

Commit

Permalink
Provide int when necessary on GetRobotFile json
Browse files Browse the repository at this point in the history
  • Loading branch information
vertigo17 committed Apr 1, 2024
1 parent 921ced0 commit ff3da86
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -597,10 +597,10 @@ private MessageEvent doActionGetRobotFile(TestCaseExecution execution, TestCaseS

// We copy the header values for the service answered.
if (contentJSON.has("totalFilesAvailable")) {
contentJSONnew.put("totalFilesAvailable", contentJSON.getString("totalFilesAvailable"));
contentJSONnew.put("totalFilesAvailable", contentJSON.getInt("totalFilesAvailable"));
}
if (contentJSON.has("totalFilesDownloaded")) {
contentJSONnew.put("totalFilesDownloaded", contentJSON.getString("totalFilesDownloaded"));
contentJSONnew.put("totalFilesDownloaded", contentJSON.getInt("totalFilesDownloaded"));
}

// We copy the file contents decoding content when it is in a compatible format.
Expand All @@ -613,7 +613,7 @@ private MessageEvent doActionGetRobotFile(TestCaseExecution execution, TestCaseS
JSONObject file = new JSONObject();
file.put("filename", files.getJSONObject(i).getString("filename"));
file.put("path", files.getJSONObject(i).getString("path"));
file.put("size", files.getJSONObject(i).getString("size"));
file.put("size", files.getJSONObject(i).getInt("size"));
file.put("lastModified", files.getJSONObject(i).getString("lastModified"));
// Getting the Base64 content in order to convert it back and guess its content.
String fileContentBase64 = files.getJSONObject(i).getString("contentBase64");
Expand Down

0 comments on commit ff3da86

Please sign in to comment.