Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0023482 | Openbravo ERP | A. Platform | public | 2013-04-03 17:29 | 2013-04-29 10:35 | |||||||
Reporter | shuehner | |||||||||||
Assigned To | alostale | |||||||||||
Priority | immediate | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | 3.0MP23 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | AugustoMauch | |||||||||||
OBNetwork customer | OBPS | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | 19637 | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0023482: Problem in Alert Management window, when the quantity of alerts exceeds the quantity of 1000 | |||||||||||
Description | When some part of the alerts shown in the AlertManagement window exceeds 1000 then the queries done for this window fail on oracle as oracle cannot execute an IN-clause having more then 1K values. The application part doing the query is a datasource: at org.openbravo.dal.service.OBQuery.list(OBQuery.java:112) at org.openbravo.service.json.DataEntityQueryService.list(DataEntityQueryService.java:91) at org.openbravo.service.json.DefaultJsonDataService.fetch(DefaultJsonDataService.java:132) at org.openbravo.service.datasource.DefaultDataSourceService.fetch(DefaultDataSourceService.java:72) at org.openbravo.service.datasource.DataSourceServlet.doFetch(DataSourceServlet.java:241) at org.openbravo.service.datasource.DataSourceServlet.doPost(DataSourceServlet.java:574) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) A logfile is attached showing the Hibernate_debug log containing an example of such an failing query. | |||||||||||
Steps To Reproduce | This occurs in Oracle, when there is an Alert Rule with a Filter Clause having more than 1000 alert instances for the current user/role. -Create an Alert Rule that generates more than 1000 alert instances -Define for this Alert Rule a Filter Clause (i.e. 1=1) -Try to open Alert Management window (from top bar) -No data is loaded in any of the grids, the error reported in the description can be seen in the log | |||||||||||
Proposed Solution | As quick fix: split the "IN" part of the query in chunks of at most 1000 elements. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=6062&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=6067&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2013-04-03 17:29 | shuehner | New Issue | ||||||||||
2013-04-03 17:29 | shuehner | Assigned To | => alostale | |||||||||
2013-04-03 17:29 | shuehner | Modules | => Core | |||||||||
2013-04-03 17:29 | shuehner | OBNetwork customer | => No | |||||||||
2013-04-03 17:29 | shuehner | Triggers an Emergency Pack | => No | |||||||||
2013-04-03 17:29 | shuehner | File Added: alert-management-window.log | ||||||||||
2013-04-03 17:37 | egoitz | OBNetwork customer | No => Yes | |||||||||
2013-04-03 17:37 | egoitz | Support ticket | => 19637 | |||||||||
2013-04-04 12:32 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=4551#r4551 | |||||||||
2013-04-04 12:32 | alostale | Proposed Solution updated | ||||||||||
2013-04-04 12:35 | alostale | File Added: 23482.diff | ||||||||||
2013-04-04 12:35 | alostale | Note Added: 0057726 | ||||||||||
2013-04-04 12:35 | alostale | Review Assigned To | => AugustoMauch | |||||||||
2013-04-04 12:51 | alostale | Relationship added | related to 0023490 | |||||||||
2013-04-09 15:29 | hgbot | Checkin | ||||||||||
2013-04-09 15:29 | hgbot | Note Added: 0057803 | ||||||||||
2013-04-09 15:29 | hgbot | Status | new => resolved | |||||||||
2013-04-09 15:29 | hgbot | Resolution | open => fixed | |||||||||
2013-04-09 15:29 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/d3651e2ab4bda740118d29362150aa44dfd7192f [^] | |||||||||
2013-04-16 19:18 | hudsonbot | Checkin | ||||||||||
2013-04-16 19:18 | hudsonbot | Note Added: 0057940 | ||||||||||
2013-04-29 10:35 | AugustoMauch | Note Added: 0058296 | ||||||||||
2013-04-29 10:35 | AugustoMauch | Status | resolved => closed | |||||||||
2013-04-29 10:35 | AugustoMauch | Fixed in Version | => 3.0MP23 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|