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

When testing HTTP agent item, query fields and headers order not being taken into account

XMLWordPrintable

    • Sprint candidates
    • 0.5

      Steps to reproduce:

      1. Create a HTTP agent item.
      2. Add 3 query fields: c: 3, b: 2, a: 1.
      3. Change the order to a: 1, b: 2, c: 3.
      4. Press Test to test the item, and then Get value.
      5. Open browser developer tools, switch to the Network tab, find the HTTP request, inspect the form data.

      Result:
      Query fields are sent in the order in which they were added:

      query_fields[name][1]: c
      query_fields[name][2]: b
      query_fields[name][3]: a
      query_fields[value][1]: 3
      query_fields[value][2]: 2
      query_fields[value][3]: 1
      

      Expected:

      query_fields[name][1]: a
      query_fields[name][2]: b
      query_fields[name][3]: c
      query_fields[value][1]: 1
      query_fields[value][2]: 2
      query_fields[value][3]: 3
      

      The same applies to headers.

            zabbix.dev Zabbix Development Team
            agriscenko Andrejs Griščenko
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: