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

Map.get property "expandUrls" has undocumented dependency from "selectSelements" -> "elements"

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 4.0.1
    • API (A)

      API mep.get property "expandUrls" works properly only if selectSelements: ["elements"] is requested. Otherwise macros that takes values from "elements" are not resolved.

      Steps to reproduce:
      1) Create a map and add map trigger element.
      2) Create a map element URL that contains {TRIGGER.ID} macros.
      3) Make following API map.get request:

      {
       "output": [],
       "expandUrls": "true",
       "selectSelements": [
       "urls", "elements"
       ],
       "sysmapids": "101"
      }
      

      Result:
      Map element contains resolved macros value in URL.

      Now, make another API map.get request:

      {
       "output": [],
       "expandUrls": "true",
       "selectSelements": [
       "urls"
       ],
       "sysmapids": "101"
      }
      

      Result:
      Macros is not resolved in element URL.

            zabbix.dev Zabbix Development Team
            Miks.Kronkalns Miks Kronkalns
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: