[ZBX-13214] Frontend does not support \0 escape sequence in regsub()/iregsub() macro function output Created: 2017 Dec 19  Updated: 2024 Apr 10  Resolved: 2018 Jan 18

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.4.5rc2, 4.0.0alpha1
Fix Version/s: 3.4.7rc1, 4.0.0alpha3, 4.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Glebs Ivanovskis (Inactive) Assignee: Gregory Chalenko
Resolution: Fixed Votes: 0
Labels: macrofunction, regularexpression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Sub-task
part of ZBX-13189 Missing documentation on \0 escape se... Closed
Team: Team B
Team: Team B
Sprint: Sprint 24, Sprint 25
Story Points: 0.5

 Description   

Steps to reproduce:

  1. Create an item
  2. Create a trigger
  3. Use ‍{{ITEM.VALUE}.regsub(.*, \0)}‍ in both trigger name and tags
  4. Make sure that item received a value
  5. Go to Monitoring->Problems or Monitoring->Triggers

Result:
Sequence got replaced with item value (since pattern .* matches everything) in tags by server and with \0 by frontend
Expected:
In both cases \0 should be replaced with a matched text.



 Comments   
Comment by Gregory Chalenko [ 2018 Jan 04 ]

(1) No translation strings changes

sasha CLOSED

Comment by Gregory Chalenko [ 2018 Jan 04 ]

Resoled in development branch svn://svn.zabbix.com/branches/dev/ZBX-13214-3.4

Comment by Gregory Chalenko [ 2018 Jan 17 ]

Fixed in:

  • 3.4.7rc1 r76934
  • 4.0.0alpha3 trunk r76935
Generated at Fri Apr 19 10:30:34 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.