ZABBIX BUGS AND ISSUES
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-8104

User defined regular expression test function return incorrect result

    Details

      Description

      User defined regular expression test function return incorrect result with "Case sensitive" option and "Return is TRUE or FALSE" expression type.
      "Case sensitive" option returns the opposite result.

      Expression: crit|error|fatal|alert|emerg|panic

      1.
      Case sensitive: false
      Test string: crit
      Result: TRUE

      2.
      Case sensitive: false
      Test string: Crit
      Result: FALSE

      3.
      Case sensitive: true
      Test string: crit
      Result: TRUE

      4.
      Case sensitive: true
      Test string: Crit
      Result: TRUE

      1. ZBX-8104.patch
        0.6 kB
        Kodai Terashima

        Activity

        Hide
        Oleksiy Zagorskyi added a comment - - edited

        Kodai, is this regression appeared in 2.2.3 ?

        Kodai Terashima It seems that 2.2.2 has same problem. I didn't check 2.2.1 or earlier.

        Show
        Oleksiy Zagorskyi added a comment - - edited Kodai, is this regression appeared in 2.2.3 ? Kodai Terashima It seems that 2.2.2 has same problem. I didn't check 2.2.1 or earlier.
        Hide
        Kodai Terashima added a comment -

        A patch uploaded.

        Show
        Kodai Terashima added a comment - A patch uploaded.
        Hide
        Krists Krigers (Inactive) added a comment -

        Used provided patch.

        Resolved in r44628, branch svn://svn.zabbix.com/branches/dev/ZBX-8104.

        Show
        Krists Krigers (Inactive) added a comment - Used provided patch. Resolved in r44628, branch svn://svn.zabbix.com/branches/dev/ZBX-8104.
        Hide
        Eduards Samersovs (Inactive) added a comment -

        Tested

        Show
        Eduards Samersovs (Inactive) added a comment - Tested
        Hide
        Krists Krigers (Inactive) added a comment -

        Merged to 2.2 in r44658.
        Merged to trunk in r44661.

        Show
        Krists Krigers (Inactive) added a comment - Merged to 2.2 in r44658. Merged to trunk in r44661.

          People

          • Assignee:
            Unassigned
            Reporter:
            Kodai Terashima
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: