[ZBX-21536] Backslash is not escaped when using trigger wizard Created: 2022 Aug 30  Updated: 2024 Apr 10  Resolved: 2022 Sep 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.0.9rc1, 6.2.3rc1, 6.4.0alpha1
Fix Version/s: 6.0.9rc1, 6.2.3rc1, 6.4.0alpha1, 6.4 (plan)

Type: Problem report Priority: Trivial
Reporter: Gregory Chalenko Assignee: Gregory Chalenko
Resolution: Fixed Votes: 0
Labels: escaping, expressions, trigger
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2022-10-03-21-08-57-028.png    
Issue Links:
Causes
causes ZBX-23846 The macro resolver incorrectly quotes... Closed
Duplicate
is duplicated by ZBX-21848 Not possible to escape parentheses in... Closed
Sub-task
part of ZBX-21009 Function backslashes escaped when app... Closed
Team: Team C
Sprint: Sprint 91 (Aug 2022), Sprint 92 (Sep 2022)
Story Points: 0.5

 Description   

Steps to reproduce:

  1. Open trigger form
  2. Open expression wizard modal
  3. Select string function "find"
  4. Set "V" field value to "\n"
  5. Press Insert

Result:
Expression is set to:

find(/host/item,,,"\n")="\\r"

Expected:
Backslash in function quoted parameters is escaped.

find(/host/item,,,"\\n")="\\r"


 Comments   
Comment by Gregory Chalenko [ 2022 Sep 08 ]

Fixed in:

Comment by Gregory Chalenko [ 2022 Nov 17 ]

Changes reverted in:

Generated at Fri Apr 04 04:22:55 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.