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

Value maps API allow to create invalid value mapping of type regexp

XMLWordPrintable

    • Sprint 77 (Jun 2021), Sprint 78 (Jul 2021)
    • 0.25

      Steps to reproduce:

      1. Create value map using example
        {
            "hostid": 10416,
            "name": "API test",
            "mappings": [
                {
                    "type": 4,
                    "value": "@invalid regex [",
                    "newvalue": "test"
                }
            ]
        }
        

      Result:
      No errors, value map is created.
      Expected:
      Error message "Invalid parameter "/1/mappings/1/value": invalid regular expression." is returned

            gcalenko Gregory Chalenko
            gcalenko Gregory Chalenko
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: