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

Inconsistent behavior of regex for UTF-8 input

    Details

    • Team:
      Team A
    • Sprint:
      Sprint 50 (Mar 2019), Sprint 51 (Apr 2019), Sprint 52 (May 2019), Sprint 53 (Jun 2019)
    • Story Points:
      2

      Description

      Currently Regex matching is not consistent between input strings and Zabbix components.
      For the test we can use the same pattern "(.)(.)(.)(.)" (without quotes).

      1. This pattern works with "abcd" on both Server and Frontend:

      2. This pattern works with "абвг" on Frontend (well, it still splits UTF sequences into separate bytes, but it doesn't produce the error), but fails on Server:

      Currently, in order for regex to work correctly on Server (as well as on Agent and Proxy), utf flag should be set like so "(*UTF)(.)(.)(.)(.)" (without quotes):

      It is expected for Server to work with UTF-8 by default.

        Attachments

        1. test0.png
          test0.png
          24 kB
        2. test1.png
          test1.png
          10 kB
        3. test2.png
          test2.png
          28 kB
        4. test3.png
          test3.png
          10 kB
        5. test5.png
          test5.png
          28 kB

          Activity

            People

            • Assignee:
              andris Andris Mednis
              Reporter:
              vjaceslavs Vjaceslavs Bogdanovs
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: