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

Empty delimiter runtime error is observed when switching to "Test" tab in Regular expression configuration form

XMLWordPrintable

    • Sprint 61 (Feb 2020), Sprint 62 (Mar 2020)
    • 0.125

      Problem description: Empty delimiter runtime error is observed when switching to "Test" tab in Regular expression configuration form, if an empty expression with expression type = "Character string not included" is configured in "Expressions" section.

      Steps to reproduce:

      1. Navigate to Administration => General => Regular expressions and press "New regular expression" button
      2. In field "Expressions" set Expression type = "Character string included" and make sure field "Expression" is empty
      3. Switch to "Test" tab

      Result: The following runtime error is observed:

      mb_strpos(): Empty delimiter [zabbix.php:21 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerRegExTest->doAction() -> CGlobalRegexp::matchExpression() -> CGlobalRegexp::_matchString() -> mb_strpos() -> CConfigFile->{closure}() in include/classes/regexp/CGlobalRegexp.php:207]
      

      Expected: no errors should be triggered.

            iivs Ivo Kurzemnieks
            solonkins Sergejs Olonkins
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: