Bug #42313 Unable to disable any rule, I get Error U0002 asking me to login
Submitted: 23 Jan 2009 19:47 Modified: 4 Mar 2009 11:13
Reporter: Diego Medina Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Web Severity:S2 (Serious)
Version:2.0.4.7138 OS:Any
Assigned to: MC Brown CPU Architecture:Any

[23 Jan 2009 19:47] Diego Medina
Description:
If I try to disable a rule using the link next to each rule I get the error message

U0002 You must log in to access the requested resource. Go to login page.

But clicking on the link does not ask me to re-login

How to repeat:
1- Install and start the service manager and agent
2- Schedule the rules under the "Administrator" category
3- Expand the Administrator category
4- Expand any rule from that category
5- Click on the link "enabled"
6- boom, error message
[23 Jan 2009 19:51] Diego Medina
As a work around, if you select the rule by clicking on the checkbox and then clicking the "button" labeled "disable"
[23 Jan 2009 19:52] Marcos Palacios
And, if you disable a rule using the rule's check box and the 'disable' button, then you get the same U0002 error when you try to enable it via the 'disabled' link under the 'Status' column.
[23 Feb 2009 20:26] Josh Sled
branches/2.0:
revno: 6601
revision-id: jsled@asynchronous.org-20090223201755-hkmr317r0m35usp1
parent: mark@mysql.com-20090220203950-mj9592eqwe1q59qm
committer: Josh Sled <jsled@asynchronous.org>
branch nick: 2.0
timestamp: Mon 2009-02-23 15:17:55 -0500
message:
  Bug#42313: correctly use the CSRF token in the rule en/disable toggle popup

trunk:
revno: 6735
revision-id: jsled@asynchronous.org-20090223201347-338g28opaslmkj92
parent: merlin@dl380-g5-a.mysql.com-20090223195029-bvbq96rln8n4czh9
committer: Josh Sled <jsled@asynchronous.org>
branch nick: local
timestamp: Mon 2009-02-23 15:13:47 -0500
message:
  Bug#42313: correctly use the CSRF token in the rule en/disable toggle popup
[26 Feb 2009 0:02] Keith Russell
Patch installed in versions => 2.0.5.7146.
[26 Feb 2009 17:41] Diego Medina
Verified fixed on 2.0.5.7146
[4 Mar 2009 11:13] Tony Bedford
An entry was added to the 2.0.5 changelog:

If an attempt was made to disable a rule using the link next to the rule, the following error message was generated:

U0002 You must log in to access the requested resource. Go to login page.

However, clicking on the link did not prompt the user to login again.