From 7363c36448fb23cd8e8b65c5c53a9f91b3b2b7fa Mon Sep 17 00:00:00 2001 From: GuiLeme Date: Thu, 16 Jun 2022 09:13:31 -0300 Subject: [PATCH] [issue-15160] - fixed error logs in recordings --- record-and-playback/core/scripts/archive/archive.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/record-and-playback/core/scripts/archive/archive.rb b/record-and-playback/core/scripts/archive/archive.rb index 2066676e9f..85b3261ad8 100755 --- a/record-and-playback/core/scripts/archive/archive.rb +++ b/record-and-playback/core/scripts/archive/archive.rb @@ -54,7 +54,10 @@ def archive_notes(meeting_id, notes_endpoint, notes_formats, raw_archive_dir) FileUtils.mkdir_p(notes_dir) tmp_note = "#{notes_dir}/tmp_note.txt" - BigBlueButton.try_download("#{notes_endpoint}/#{CGI.escape notes_id}/export/txt", tmp_note) + base_path_notes = CGI.escape notes_id + if base_path_notes != "undefined" + BigBlueButton.try_download("#{notes_endpoint}/#{base_path_notes}/export/txt", tmp_note) + end if File.exist? tmp_note # If the notes are empty, do not archive them blank = false