Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019839Openbravo ERPA. Platformpublic2012-02-22 12:292012-03-02 15:39
alostale 
AugustoMauch 
urgentmajoralways
closedfixed 
5
 
pi 
Core
No
0019839: Incorrect alert filter prevents login
An incorrect filter in an Alert Rule can cause the system to not allow to log in.

In this situation after entering user/password and error message is shown and loading screen is kept.
-Select an Alert Rule with alert instances
-Change its filter clause to any sensless string
-Log in the application with a role which is part of this alert's assignees -> Error popup appears and loading screen doesn't disappear.
No tags attached.
png Selection_033.png (12,870) 2012-02-22 12:30
https://issues.openbravo.com/file_download.php?file_id=5017&type=bug
png
Issue History
2012-02-22 12:29alostaleNew Issue
2012-02-22 12:29alostaleAssigned To => alostale
2012-02-22 12:29alostaleModules => Core
2012-02-22 12:30alostaleFile Added: Selection_033.png
2012-02-22 12:30alostaleAssigned Toalostale => AugustoMauch
2012-02-22 12:36shuehnerIssue Monitored: shuehner
2012-02-22 19:03AugustoMauchNote Added: 0045387
2012-02-22 19:04AugustoMauchNote Added: 0045388
2012-02-22 19:14hgbotCheckin
2012-02-22 19:14hgbotNote Added: 0045389
2012-02-22 19:14hgbotStatusnew => resolved
2012-02-22 19:14hgbotResolutionopen => fixed
2012-02-22 19:14hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d6522f4e28aea055ea2bf508f91e2667832a1f89 [^]
2012-02-23 17:53hgbotCheckin
2012-02-23 17:53hgbotNote Added: 0045420
2012-02-23 20:17guilleaerNote Added: 0045426
2012-02-23 20:17guilleaerStatusresolved => closed
2012-02-23 20:17guilleaerFixed in Version => pi
2012-03-02 15:38hudsonbotCheckin
2012-03-02 15:38hudsonbotNote Added: 0045930
2012-03-02 15:39hudsonbotCheckin
2012-03-02 15:39hudsonbotNote Added: 0045946

Notes
(0045387)
AugustoMauch   
2012-02-22 19:03   
When an alert rule with an invalid filter was processed, the exception that was thrown was not being caught.

The fix has consisted in adding a try/catch block to capture this exception, adding a message to the login when that happens.
(0045388)
AugustoMauch   
2012-02-22 19:04   
Test plan:
- Follow the steps described in the steps to reproduce section.
- The login process should complete successfully, and and error should be displayed in the log.

This fix is not risky.
(0045389)
hgbot   
2012-02-22 19:14   
Repository: erp/devel/pi
Changeset: d6522f4e28aea055ea2bf508f91e2667832a1f89
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Feb 22 19:12:30 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/d6522f4e28aea055ea2bf508f91e2667832a1f89 [^]

Fixes issue 19839: The Exception is now being caught

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java
---
(0045420)
hgbot   
2012-02-23 17:53   
Repository: erp/devel/pi
Changeset: 4940d1f96b76a27cce4a075ded01099d9e6b3a51
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Feb 23 17:49:31 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/4940d1f96b76a27cce4a075ded01099d9e6b3a51 [^]

Related to issue 19839: Adds exception handling in the Alert window

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertManagementActionHandler.java
---
(0045426)
guilleaer   
2012-02-23 20:17   
code review and tested on pi@4940d1f96b76
(0045930)
hudsonbot   
2012-03-02 15:38   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/544d64e0c159 [^]

Maturity status: Test
(0045946)
hudsonbot   
2012-03-02 15:39   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/544d64e0c159 [^]

Maturity status: Test