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

HTTP agent item fails when query field is empty (default)

XMLWordPrintable

    • S24-W36/37, S24-W38/39
    • 0.25

      Steps to reproduce:

      1. Create HTTP Agent item type
      2. Select GET and put the correct URL and Auth header. The API does not require any HTTP paramenters
      3. Test the item via Test button
      4. ...

      Result:

      The returned error complains additional properties are not allowed

      See screenshot KO_1 and KO_2

      Expected:

      If I remove the empty query field, the test runs successfully

      See screenshot OK_1 and OK_2

       

      Problem is, when I save the item, and then reopen it, the empty query field is still there. Seems it can't be removed.

       

      The API endpoint is a Proxmox Server 8.2.4

       

      Thank you
      See attached patch file...

        1. image-2024-08-30-20-22-12-234.png
          568 kB
          Alexander Vladishev
        2. KO_1.png
          40 kB
          Giuseppe Calignano
        3. KO_2.png
          21 kB
          Giuseppe Calignano
        4. OK_1.png
          41 kB
          Giuseppe Calignano
        5. OK_2.png
          16 kB
          Giuseppe Calignano

            gcalenko Gregory Chalenko
            quasaro Giuseppe Calignano
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Time Spent - 40m Remaining Estimate - 20m
                20m
                Logged:
                Time Spent - 40m Remaining Estimate - 20m
                40m