Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031719Openbravo ERPA. Platformpublic2015-12-15 13:022022-02-01 08:09
egoitz 
Triage Platform Base 
highmajorhave not tried
newopen 
5
 
 
Core
No
0031719: Alerts should take into account the client and the org of the alert definition
Right now the sql alert executed for the alerts does not include the client or organization whre the alert is defined.

that means that the query can return elements of other organizations or clients.

The process should add the client and org on the where clause of the query executed.
Check on the selectAlert method of the AlertProcess.java file that the query is executed on that way without adding filters for organzation or client:

    String strSql = "SELECT * FROM (" + alertRuleSQL + ") AAA where not exists ("
        + "select 1 from ad_alert a where a.ad_alertrule_id = ? "
        + "and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED')";
No tags attached.
Issue History
2015-12-15 13:02egoitzNew Issue
2015-12-15 13:02egoitzAssigned To => platform
2015-12-15 13:02egoitzModules => Core
2015-12-15 13:02egoitzTriggers an Emergency Pack => No
2022-02-01 08:09alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.