[ZBX-9882] Multiple item key parsing issues in server Created: 2015 Sep 17  Updated: 2024 Apr 10  Resolved: 2018 Apr 27

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Proxy (P), Server (S)
Affects Version/s: None
Fix Version/s: 4.0.0alpha6, 4.0 (plan)

Type: Problem report Priority: Minor
Reporter: Andris Zeila Assignee: Viktors Tjarve
Resolution: Fixed Votes: 0
Labels: escaping, keys
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Causes
causes ZBX-13794 Remove dead code Closed
Sub-task
depends on ZBX-13783 Drop Zapcat-style and multi level pa... Closed
Team: Team A
Sprint: Sprint 27, Sprint 28, Sprint 29, Sprint 30, Sprint 31, Sprint 32
Story Points: 4

 Description   

key[["a\"b"]] returns NULL parameter instead of "a\"b".

key[a][b] returns a][b parameter instead 2 parameters - a and b.



 Comments   
Comment by Alexander Vladishev [ 2017 Nov 23 ]

glebs.ivanovskis, please add unit tests for parse_item_key() and functions for parsing item parameters.

Comment by Viktors Tjarve [ 2018 Mar 22 ]

[G][S][P] Dropped Zapcat-style key support key[a][b].
Dropped multi level parameter arrays key[a,[b,[c,d]],e].
Fixed bug allowing ] character in unquoted parameter strings.

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-9882

Comment by Andris Mednis [ 2018 Mar 27 ]

(1) Some changes in frontend also need to be done!

<viktors.tjarve]> CLOSED
This sub-issue will be resolved in ZBX-13783.

Comment by Andris Mednis [ 2018 Apr 06 ]

(6) See proposed parse_key() modification r79313 - improved const-correctness, less type casts.

<viktors.tjarve> Looks good. CLOSED

Generated at Fri Apr 26 17:04:43 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.