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

Item preprocessing test popup form parameters can contain different new lines than parent window form

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 4.4.0alpha2
    • Frontend (F)
    • Team B

      1. Open item edit form and add a script type preprocessing step.
      2. In the value using multiline edit add two empty lines and a symbol.
      3. Open preprocessing test popup form.
      4. Inspect the hidden textarea element and see that there is only one new line left instead of two.

      After ZBXNEXT-3970 (ZBXNEXT-5409) is live, this will also affect preprocessing type "CSV to JSON". The first two parameters can be empty. So the preprocessing parameters can hold "\n\n1". And in preprocessing test popup form after jQuery.append is performed to display the form, it will be converted to "\n1" for reasons unknown. Same as it would be a script type. A temporary solution in popup.preproctestedit.view.php. was created to fix only for preprocessing type "CSV to JSON", but a better solution is required.

            zabbix.dev Zabbix Development Team
            iivs Ivo Kurzemnieks
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: