Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-16051

When an invalid Line break character is used it is processed in the error message

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • Frontend (F)

      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:

      1. Navigate to Configuration => Hosts => <Your Host name> => Items and open any existing item (or create a new one)
      2. Open Preprocessing Tab and add a "Phrometheus pattern" preprocessing step.
      3. Specify valid parameters for this preprocessing step (for example "free_bites {volume="D:"} == 9e+13" and "volume")
      4. Press button "Test" or "Test all steps"
      5. 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.

      Example:

            zabbix.dev Zabbix Development Team
            solonkins Sergejs Olonkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: