[ZBX-9013] exchanging operations in an action results in "Incorrect action operationid." Created: 2014 Nov 10  Updated: 2017 May 30  Resolved: 2015 Jan 26

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.2.7, 2.4.2
Fix Version/s: 2.2.9rc1, 2.4.4rc1, 2.5.0

Type: Incident report Priority: Major
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: actions, operations
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File incorrect-operationid.png    
Issue Links:
Duplicate
is duplicated by ZBX-9110 action operations can get duplicated Closed

 Description   

Create an action with two operations: one sends a message to user "Admin", another sends a message to group "Zabbix administrators". Save that action, after that edit the first operation to send a message to the group and edit the second operation to send a message to the user. Observe the following error:



 Comments   
Comment by Aleksandrs Saveljevs [ 2014 Nov 12 ]

Same error is shown when we change media type for both of these operations.

Comment by Alexander Vladishev [ 2014 Nov 12 ]

No error messages are displayed in 2.4 branch, but one operation was silently deleted while saving changes.

Comment by Alexander Vladishev [ 2014 Nov 12 ]

Works fine in latest 2.0 r50568.

Comment by Krists Krigers (Inactive) [ 2014 Nov 14 ]

Fixed in r50626, branch svn://svn.zabbix.com/branches/dev/ZBX-9013 (copy of branches/2.4).

Comment by Krists Krigers (Inactive) [ 2014 Nov 20 ]

For 2.2 fixed in r50705, branch svn://svn.zabbix.com/branches/dev/ZBX-9013-22.

Comment by Aleksandrs Saveljevs [ 2014 Dec 04 ]

(1) It should be checked whether the fix also solves ZBX-9110.

iivs Checked. It solves the duplicate issue.
CLOSED.

Comment by richlv [ 2014 Dec 05 ]

(2) moved (1) from ZBX-9110
in some cases operations may be lost.
edit an action with two operations with the same steps (like 1-0)
edit the second operation. sometimes (exact conditions not clear), editing it will rearrange the operations in the list.
click 'update' for the operation - now both operations are the same

iivs Issue is also fixed. CLOSED.

Comment by Ivo Kurzemnieks [ 2015 Jan 09 ]

Incorrect sorting happens do to bug in PHP function uasort(). See https://bugs.php.net/bug.php?id=53341

Comment by Ivo Kurzemnieks [ 2015 Jan 10 ]

Provided different fix for 2.2 in svn://svn.zabbix.com/branches/dev/ZBX-9013-22 r51493
If fix is good, the branch svn://svn.zabbix.com/branches/dev/ZBX-9013 will not be used.

Comment by Ivo Kurzemnieks [ 2015 Jan 26 ]

Although this fixes the bug, there is still a small inconveniance when operation is being edited. The list is still being re-ordered each time "Update" is clicked on operation (if two operations are the same). I made a separate issue for this sorting problem when editing an operation each time. See ZBX-9252

Comment by Ivo Kurzemnieks [ 2015 Jan 26 ]

Fixed in:

  • pre-2.2.9rc1 r51826
  • pre-2.4.4rc1 r51827
  • pre-2.5.0 (trunk) r51828
Comment by Alexander Vladishev [ 2015 Jan 26 ]

(4) No string changes.

CLOSED

Generated at Thu Apr 25 21:12:01 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.