Bug #25797 Notice dialog reports rule scheduled when it wasn't successfully scheduled
Submitted: 23 Jan 2007 19:09 Modified: 15 Feb 2007 6:36
Reporter: Andy Bang Email Updates:
Status: Closed Impact on me:
Category:MySQL Enterprise Monitor: Web Severity:S2 (Serious)
Version:1.1 OS:Windows (Windows XP)
Assigned to: Joshua Ganderson CPU Architecture:Any

[23 Jan 2007 19:09] Andy Bang
The notice dialog that appears after you schedule a rule says a rule was scheduled when in fact it couldn't be scheduled.

How to repeat:
1) Schedule a rule against a server that doesn't have one of the underlying data items (e.g. "XA Distributed Transaction Support Enabled For InnoDB" against a 4.1 server).

2) You will see a message that says "The server XXX does not support "innodb_support_xa"."

3) When you click OK, the Notice dialog pops up and says "Notice: 1 rule scheduled against 1 server."  This is incorrect because the rule wasn't scheduled.

Suggested fix:
Show the correct message.
[1 Feb 2007 17:26] Joshua Ganderson
Fixed number of rules reported as successfully scheduled when one or more rules failed to be scheduled. Problem resulted from subtracting length property of associative array (of errors), javascript only reports length of length of numerically indexed array.