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

Inconsistent behavior of regex for UTF-8 input

XMLWordPrintable

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

      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.

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

            andris Andris Mednis
            vjaceslavs Vjaceslavs Bogdanovs
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: