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

Trailing and leading spaces are not trimmed in multiple fields in Web scenario and web scenario step configuration

XMLWordPrintable

    • Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023), Sprint 107 (Dec 2023), S2401
    • 0.5

      Problem description: Trailing and lieading spaces are not trimmed in Name => Value pair fields in Web scenario and Web scenario step configuration forms. List of such fields:
      Web scenario => Variables (trailing/leading spaces not trimmed in Value field)
      Web scenario => Headers
      Web scenario step => Query fields
      Web scenario step => Post fields
      Web scenario step => Variables (trailing/leading spaces not trimmed in Value field)
      Web scenario step => Headers

      Steps to reproduce:

      1. Open the list of web scenarios of any host
      2. Click on the "Create web scenario" button
      3. Fill in Web scenario name and add values with trailing and leading spaces in the following fields:
        Web scenario => Variables => Name
        Web scenario => Variables => Value
        Web scenario => Headers => Name
        Web scenario => Headers => Value
      4. Open "Steps" tab and press "Add" button in "Steps" field
      5. In the opened dialog populate Step name and URL and add values with trailing and leading spaces in the following fields:
        Web scenario step => Query fields => Name
        Web scenario step => Query fields => Value
        Web scenario step => Post fields => Name
        Web scenario step => Post fields => Value
        Web scenario step => Variables => Name
        Web scenario step => Variables => Value
        Web scenario step => Headers => Name
        Web scenario step => Headers => Value
      6. Save step configuration
      7. Save Web scenario configuration
      8. Open created web scenario and check trailing and leading spaces in all of the above mentioned fields.

      Result: trailing and leading spaces were trimmed only in Variables => Name field in Web scenario and Web scenario step configuration forms
      Expected: suggestion is to trim trailing and leading spaces in all of the above mentioned fields.

        1. headers_order.gif
          392 kB
          Sergejs Olonkins
        2. image-2023-03-01-11-11-48-317.png
          11 kB
          Sergejs Olonkins

            ddauksa Diana Dauksa
            solonkins Sergejs Olonkins
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: