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

    • S24-W28/29, S24-W30/31, S24-W34/35
    • 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.

            iivs Ivo Kurzemnieks
            agriscenko Andrejs Griščenko
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 5h 32m
                5h 32m