From 278d48ca6c31eb185303a7676a56bf6fa847cb32 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Tue, 5 May 2020 22:43:25 +0200 Subject: [PATCH] Docker Output: Convert any object to string if not done automatically --- app/controllers/submissions_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/submissions_controller.rb b/app/controllers/submissions_controller.rb index 7554a91f..8f695fc8 100644 --- a/app/controllers/submissions_controller.rb +++ b/app/controllers/submissions_controller.rb @@ -297,9 +297,9 @@ class SubmissionsController < ApplicationController Rails.logger.info('parse_message sent: ' + JSON.dump(parsed)) end ensure - @raw_output += parsed['data'] if parsed.class == Hash and parsed.key? 'data' + @raw_output += parsed['data'].to_s if parsed.class == Hash and parsed.key? 'data' # save the data that was send to the run_output if there is enough space left. this will be persisted as a testrun with cause "run" - @run_output += JSON.dump(parsed) if @run_output.size <= max_run_output_buffer_size + @run_output += JSON.dump(parsed).to_s if @run_output.size <= max_run_output_buffer_size end end