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

selectTags usage in Host and Template API may cause undefined index error

    XMLWordPrintable

Details

    • Team B
    • Sprint 77 (Jun 2021), Sprint 78 (Jul 2021)
    • 0.125

    Description

      Steps to reproduce:

      1. Create a host with at least one tag.
      2. Make API request to host.get and specify selectTags query option to retrieve a tag only: selectTags = ['tag'].

      Result:

      1. PHP Notice: Undefined index: value in C:\WebDev\Sites\n3022\ui\include\classes\api\services\CHostGeneral.php on line 858
      2. value = NULL returned by API.

      Expected:

      1. No PHP errors reported.
      2. Only a tag property returned by API.

      Attachments

        Activity

          People

            jfreibergs Janis Freibergs
            averza Andrejs Verza
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: