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

Details

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

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: