[ZBX-9912] ITEM.LASTVALUE truncates string to 2048 bytes Created: 2015 Sep 28 Updated: 2017 May 30 Resolved: 2015 Oct 08 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 2.2.10 |
Fix Version/s: | 2.2.11rc1, 2.4.7rc1, 3.0.0alpha3 |
Type: | Incident report | Priority: | Blocker |
Reporter: | Kodai Terashima | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | macros, trim | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
{ITEM.LASTVALUE} truncates history value to 2048 bytes. It causes splitting unicode character if history is unicode string more than 2048 bytes, then leads db insert error for alerts table. DBItem_lastvalue() uses tmp[MAX_STRING_LEN], it should be replaced with MAX_BUFFER_LEN. |
Comments |
Comment by Andris Zeila [ 2015 Oct 05 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-9912 |
Comment by dimir [ 2015 Oct 06 ] |
Successfully tested. Note! After upgrading to the version containing the fix all previous events that weren't handled by alerter because of this error will be processed. |
Comment by Andris Zeila [ 2015 Oct 06 ] |
Released in:
|