[ZBX-7949] Multi byte string support Created: 2014 Mar 17 Updated: 2017 May 30 Resolved: 2014 Apr 29 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A), Frontend (F) |
Affects Version/s: | 2.2.3rc1, 2.3.0 |
Fix Version/s: | 2.3.0 |
Type: | Incident report | Priority: | Major |
Reporter: | Pavels Jelisejevs (Inactive) | Assignee: | Ivo Kurzemnieks |
Resolution: | Fixed | Votes: | 0 |
Labels: | api, frontend, mbstring, multibyte, strings | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
There are several problems with handling multi byte strings in the frontend. |
Comments |
Comment by Ivo Kurzemnieks [ 2014 Apr 04 ] |
During development another bug was found in log trigger expression wizard (tr_logform.php). I had several expressions with type 'include' and all had one or many multibyte characters. Once I added another expression with type 'exclude' and moved it to first position, I got an error about incorrect trigger expression. It turned out that on some occasions it used strlen() instead of mb_strlen(). So this will also be fixed as well. |
Comment by Ivo Kurzemnieks [ 2014 Apr 04 ] |
(1)
Added strings:
Eduards CLOSED |
Comment by Ivo Kurzemnieks [ 2014 Apr 04 ] |
Now since we require mbstring to be enabled and we no longer have fallback to simple string functions, if mbstring is disabled there will be PHP fatal error. In case mbstring.func_overload has incorrect value, in Monitoring > Dashboard > Status of Zabbix (and Reports > Status of Zabbix) will display an error. In frontend installation if mbstring functions are disabled, mbstring.func_overload option will remain hidden untill the mbstring functions are enabled. The reason for this is that mbstring.func_overload returns boolean value false if mbstring functions are disabled. However it returns a value set in php.ini if mbstring functions are enabled. Note that mbstring.func_overload value represents a combination of bitmasks. Notes on function usage:
|
Comment by Ivo Kurzemnieks [ 2014 Apr 04 ] |
RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-7949 |
Comment by Ivo Kurzemnieks [ 2014 Apr 24 ] |
(2) In Eduards CLOSED |
Comment by Eduards Samersovs (Inactive) [ 2014 Apr 28 ] |
(3) As we discussed row highlighting not work in Log history screen. Also please return this code: $data['value'] = trim($data['value'], "\r\n"); |
Comment by Eduards Samersovs (Inactive) [ 2014 Apr 29 ] |
(4) class.globalregexp.php:205 typo in variable name "$paterns". |
Comment by Eduards Samersovs (Inactive) [ 2014 Apr 29 ] |
(5) Please return previous formatting in triggers.inc.php:2302 iivs Ok, but just this once. RESOLVED in r44934 |
Comment by Eduards Samersovs (Inactive) [ 2014 Apr 29 ] |
(6) zbx_stripos() still is used in search.php:206,464 iivs Since host and template names can't contain any multibyte chars, decided not to use mb functions there. RESOLVED in r44937 |
Comment by Eduards Samersovs (Inactive) [ 2014 Apr 29 ] |
Tested |
Comment by Ivo Kurzemnieks [ 2014 Apr 29 ] |
Overview of things done:
Implemented and fixed in pre-2.3.0 (trunk) r44967 |
Comment by Martins Valkovskis [ 2014 May 16 ] |
Updated documentation: |
Comment by Alexander Vladishev [ 2014 May 21 ] |
(7) Cannot update trigger prototype. Occurs nothing when clicking the [Save] button. iivs RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-7949 r45730 sasha Successfully TESTED! iivs CLOSED. |
Comment by Ivo Kurzemnieks [ 2014 May 22 ] |
Fixed in pre-2.3.0 (trunk) r45735 |
Comment by richlv [ 2014 May 29 ] |
this caused a regression with filters : |
Comment by Pavels Jelisejevs (Inactive) [ 2014 Jun 12 ] |
This caused a regression: the "case-sensitive" option in regular expressions worked in an opposite way. Will be fixed in |