[ZBX-7202] action can be left without any operations Created: 2013 Oct 24 Updated: 2022 Oct 08 Resolved: 2015 Oct 29 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A) |
Affects Version/s: | 2.0.9, 2.1.8 |
Fix Version/s: | 3.0.0alpha4 |
Type: | Incident report | Priority: | Major |
Reporter: | richlv | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Labels: | actions, validation | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
have a user as the only recipient in action. delete that user. action is left without any operations - something we would normally not allow. apparently, validation does not really happen in the api note that ZBXNEXT-105 is different - it asks about warning in such cases when there would still be some operations/targets left |
Comments |
Comment by richlv [ 2013 Dec 17 ] |
still there in 2.2.0 |
Comment by richlv [ 2013 Dec 17 ] |
(1) related : have action operation that sends to user and user group. delete user - whole operation is deleted. should not happen. gunarspujats RESOLVED in r55712. oleg.egorov CLOSED |
Comment by richlv [ 2013 Dec 17 ] |
ZBXNEXT-551 talks about warnings in case anything an action references is deleted |
Comment by richlv [ 2014 Mar 18 ] |
|
Comment by Gunars Pujats (Inactive) [ 2015 Sep 23 ] |
(2) [A] Added translation strings:
oleg.egorov CLOSED <richlv> actual added translation string is "Action disabled due to deletion of user", without trailing dot - is that good ? gunarspujats RESOLVED in r56416. oleg.egorov Thank you, Rich! CLOSED |
Comment by Gunars Pujats (Inactive) [ 2015 Sep 23 ] |
RESOLVED in development branch svn://svn.zabbix.com/branches/dev/ZBX-7202 |
Comment by Oleg Egorov (Inactive) [ 2015 Sep 24 ] |
(3) Coding style:
As example Now: /** * Disable actions * @param array $actionids */ Correct: /** * Disable actions. * * @param array $actionids */
gunarspujats RESOLVED in r55774. oleg.egorov Other issues:
REOPENED gunarspujats RESOLVED in r55802. oleg.egorov testFormAdministrationUserCreate.php
Now: $this->click("id=add_group"); REOPENED gunarspujats RESOLVED in r55892.
REOPENED gunarspujats RESOLVED in r56376. oleg.egorov Variable naming gunarspujats RESOLVED in r56383. oleg.egorov CLOSED |
Comment by Oleg Egorov (Inactive) [ 2015 Sep 25 ] |
(4) Please add operation id for disableActionsWithoutOperations, to improve performance gunarspujats RESOLVED in r55774. oleg.egorov As was discussed with oleg.egorov,iivs, ingus.vilnis, dimir and gunarspujats in audit log should be added details, why was disabled action. And code from actions.inc.php (disableActionsWithoutOperations and disableActions) should be moved to CUser.php and CUserGroup.php gunarspujats RESOLVED in r55948. oleg.egorov CLOSED |
Comment by Gunars Pujats (Inactive) [ 2015 Oct 27 ] |
Fixed in:
|
Comment by Gunars Pujats (Inactive) [ 2015 Oct 27 ] |
(5) API documentation: oleg.egorov CLOSED |