Project

General

Profile

Actions

Bug #21736

closed

Broken report parsing when the key value contains line breaks

Added by Nicolas CHARLES about 2 years ago. Updated 8 months ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Error - Next version
Regression:
No

Description

If i want to use multi line key, the reporting breaks because agent adds text in the output

with command_execution, if i run the following command, i get

cd /var/rudder/tmp/assets/
tar -xzvf /var/rudder/tmp/assets/fs-linux-agent-3.4.0.tar.gz

the reporting is

cd /var/rudder/tmp/assets/
2022-09-08T10:44:12+00:00 tar -xzvf /var/rudder/tmp/assets/fs-linux-agent-3.4.0.tar.gz

so the webapp can't match it
happens in 7.1, most likely in older versions


Files

previous (28.8 KB) previous Nicolas CHARLES, 2022-09-08 12:53

Subtasks 1 (0 open1 closed)

Bug #21829: command output is broken on linux when key is multilinedRejectedActions
Actions #1

Updated by Nicolas CHARLES about 2 years ago

  • File previous previous added
  • Severity set to Major - prevents use of part of Rudder | no simple workaround
Actions #2

Updated by Alexis Mousset about 2 years ago

  • Status changed from New to In progress
  • Assignee set to Alexis Mousset
Actions #3

Updated by Alexis Mousset about 2 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Félix DALLIDET
  • Pull Request set to https://github.com/Normation/rudder/pull/4474
Actions #4

Updated by Alexis Mousset about 2 years ago

  • Subject changed from when a key is multi-line, the reporting fails because agent add the datetime in fron of each new line to Broken report parsing when the key value contains line breaks
Actions #5

Updated by Alexis Mousset about 2 years ago

  • Status changed from Pending technical review to Pending release
Actions #6

Updated by Nicolas CHARLES about 2 years ago

  • Subtask #21829 added
Actions #7

Updated by Nicolas CHARLES about 2 years ago

  • Fix check changed from To do to Error - Next version
Actions #8

Updated by Vincent MEMBRÉ about 2 years ago

This bug has been fixed in Rudder 7.1.7 and 7.2.1 which were released today.

Actions #9

Updated by Vincent MEMBRÉ 8 months ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF