-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
None
In case if an incompatible line break option is used when testing a preprocessing step, in the error message the invalid line break character breaks the error message text into two lines without displaying the actual invalid character, thus, making the error message misleading for the user.
Steps to reproduce:
- Navigate to Configuration => Hosts => <Your Host name> => Items and open any existing item (or create a new one)
- Open Preprocessing Tab and add a "Phrometheus pattern" preprocessing step.
- Specify valid parameters for this preprocessing step (for example "free_bites {volume="D:"} == 9e+13" and "volume")
- Press button "Test" or "Test all steps"
- In the opened pop-up window specify field "Value" (should contain multiple lines) , set "End of line sequence" to "CRLF" and press "Test" button.
Result: The test has failed and the error message states that there is an invalid character, but the invalid character is not present in the error message and the message itself is broken into separate lines (newline character was not interpreted as string and was processed):
cannot apply Prometheus pattern: data parsing error at row 2 "free_bites{volume="D:"} 9e+13 ": invalid character ' ' following metric value
Expected: The invalid line break character should be interpreted as sting - it should be shown in the error message and should not cause line breaks in the message itself.