Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031578Openbravo ERPC. Securitypublic2015-11-25 13:262015-12-02 11:28
alostale 
caristu 
immediatemajorhave not tried
closedfixed 
5
 
3.0PR15Q4.13.0PR15Q4.1 
alostale
Core
No
0031578: alert fetches with where parameter
Alert window shouldn't fetch data using where parameter.
-
No tags attached.
blocks defect 0031577 closed caristu alert fetches with where parameter 
Issue History
2015-11-25 13:27alostaleTypedefect => backport
2015-11-25 13:27alostaleTarget Version => 3.0PR15Q4.2
2015-12-01 13:22caristuTarget Version3.0PR15Q4.2 => 3.0PR15Q4.1
2015-12-01 18:38caristuAssigned Toplatform => caristu
2015-12-01 18:38hgbotCheckin
2015-12-01 18:38hgbotNote Added: 0082497
2015-12-01 18:38hgbotStatusscheduled => resolved
2015-12-01 18:38hgbotResolutionopen => fixed
2015-12-01 18:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q4.1/rev/742cf5efa2d9d02a7b49efefd1a600bb4d414d7e [^]
2015-12-01 18:39caristuReview Assigned To => alostale
2015-12-01 18:39caristuIssue Monitored: alostale
2015-12-02 10:38hgbotCheckin
2015-12-02 10:38hgbotNote Added: 0082521
2015-12-02 11:28alostaleNote Added: 0082526
2015-12-02 11:28alostaleStatusresolved => closed
2015-12-02 11:28alostaleFixed in Version => 3.0PR15Q4.1

Notes
(0082497)
hgbot   
2015-12-01 18:38   
Repository: erp/backports/3.0PR15Q4.1
Changeset: 742cf5efa2d9d02a7b49efefd1a600bb4d414d7e
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Dec 01 18:36:24 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q4.1/rev/742cf5efa2d9d02a7b49efefd1a600bb4d414d7e [^]

fixes issue 31578: alert fetches with where parameter

In order to avoid the fetching of the where parameter we generate the where clause inside the datasource. A new datasource has been created, ADAlertDatasourceService, to support the requests from the Alert Management window.

In addition, it has been fixed a problem in the Alert Rule drop-down filter of the grids in the Alert Management window which was displaying alert rules from all the grids in the window instead of those displayed just on a particular grid.

---
M modules/org.openbravo.client.application/src-db/database/sourcedata/OBSERDS_DATASOURCE.xml
M modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertManagementActionHandler.java
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/alert-management/ob-alert-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/alert-management/ob-alert-management-view.js
A modules/org.openbravo.client.application/src/org/openbravo/client/application/ADAlertDatasourceService.java
---
(0082521)
hgbot   
2015-12-02 10:38   
Repository: erp/backports/3.0PR15Q4.1
Changeset: 711164dd549bf0598ad90247c6b875d94717004f
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Dec 02 10:38:04 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q4.1/rev/711164dd549bf0598ad90247c6b875d94717004f [^]

related to issue 31578: code review improvements

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/ADAlertDatasourceService.java
---
(0082526)
alostale   
2015-12-02 11:28   
code reviewed

tested:
* _where is not sent to DS
* limited role without any other access than alert management can:
  - see alerts
  - move to different status