[ZBX-10226] Error when changing Trigger's prototype name Created: 2015 Dec 30  Updated: 2017 May 30  Resolved: 2016 Jan 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Frontend (F)
Affects Version/s: 3.0.0alpha5
Fix Version/s: 3.0.0beta1

Type: Incident report Priority: Major
Reporter: Vitaly Zhuravlev Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: triggerprototypes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File screenshot-1.png    

 Description   

Error is presented when trying to change trigger's prototype name:

To reproduce:

1. Try to change name of some trigger prototype (eg in Template OS Windows). Just change single char.

2. Press Update

You would get an error:

Cannot update trigger prototype
Details
Undefined variable: expressionFull [trigger_prototypes.php:210 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CTriggerPrototype->update() ? CTriggerPrototype->updateReal() in include/classes/api/services/CTriggerPrototype.php:751]
Incorrect trigger expression. Check expression part starting from "".

Now please note: How you can update the trigger from this point:
A. If you change name BACK (exactly as it was) you could save the trigger proto
B. If you leave the name changed but would go and change trigger proto EXPRESSION as well - you would be able save the trigger proto



 Comments   
Comment by Gunars Pujats (Inactive) [ 2016 Jan 18 ]

(1) No translation strings changed.

sasha CLOSED

Comment by Gunars Pujats (Inactive) [ 2016 Jan 18 ]

RESOLVED in development branch svn://svn.zabbix.com/branches/dev/ZBX-10226

Comment by Alexander Vladishev [ 2016 Jan 19 ]

(2) $descriptionChanged and $expressionChanged are incorrectly initialized

sasha RESOLVED in r57799

gunarspujats CLOSED

Comment by Alexander Vladishev [ 2016 Jan 19 ]

Successfully tested!

Comment by Gunars Pujats (Inactive) [ 2016 Jan 19 ]

Fixed in:

  • pre-3.0.0beta1 (trunk) r57814
Generated at Thu Apr 25 17:41:57 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.