[ZBX-16279] Value mapping applied in problem name to value with space at the end Created: 2019 Jun 18  Updated: 2024 Apr 10  Resolved: 2019 Sep 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 4.0.9
Fix Version/s: 4.0.13rc1, 4.2.7rc1, 4.4.0alpha3, 4.4 (plan)

Type: Problem report Priority: Minor
Reporter: Valdis Murzins Assignee: Andrejs Kozlovs
Resolution: Fixed Votes: 0
Labels: problem, valuemapping
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Sub-task
part of ZBX-16176 Character Value Mappings for item pro... Closed
Team: Team A
Sprint: Sprint 55 (Aug 2019), Sprint 53 (Jun 2019), Sprint 54 (Jul 2019)
Story Points: 0.125

 Description   

Steps to reproduce:
1) Create a value mapping for character data. (no spaces at the end of value)
2) Create a Zabbix trapper item of type "character" and apply value mapping to it.
3) Create a trigger using newly created item and add {ITEM.VALUE} macro in the name of trigger.
4) Send value to item, having space character at the end of value.

Result:
1) Item has new value, but since it ends with space character, value mapping is not applied in latest data, history as well as data overview and plain text widgets. That's correct.
2) {ITEM.VALUE} macro is resolved and value mapping is applied to name of event and problem.

Expected:
Value mapping shouldn't be applied to result of {ITEM.VALUE}/{ITEM.LASTVALUE} macros in event and problem names because untrimmed value doesn't match one specified in value mapping.



 Comments   
Comment by Andrejs Kozlovs [ 2019 Aug 29 ]

Fixed in:

  • 4.0.13rc1 58c6714cf90
  • 4.2.7rc1 e08afca21b9
  • 4.4.0alpha3 (master) d1629bf5a64
Generated at Wed Apr 24 03:42:01 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.