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

    • Prev.Sprint, S24-W36/37, S24-W38/39, S24-W40/41, S24-W42/43
    • 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. OK_2.png
          OK_2.png
          16 kB
        2. OK_1.png
          OK_1.png
          41 kB
        3. KO_2.png
          KO_2.png
          21 kB
        4. KO_1.png
          KO_1.png
          40 kB
        5. image-2024-08-30-20-22-12-234.png
          image-2024-08-30-20-22-12-234.png
          568 kB

            jfreibergs Janis Freibergs
            quasaro Giuseppe Calignano
            Team C
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1h Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m