Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0045468 | Retail Modules | Web POS | public | 2020-11-20 04:42 | 2020-11-23 11:21 |
Reporter | lbressan | ||||
Assigned To | Retail | ||||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0045468: Bug in the ProcessHQLQuery infrastructure. The system throws an error when there are more than one hqlQuery on a model. | ||||
Description | The system throws an error on the following line of the ProcessHQLQuery class: for (int i = 0; i < queries.size(); i++) { if (limit == 0) { break; } String hqlQuery = queries.get(i); HQLPropertyList hqlProperty; if (properties != null) { hqlProperty = properties.get(i); } else { hqlProperty = null; } All are fine when you have only one query, but when the system is trying to execute a second query, the system crashes, because it is trying to get a property in position 1, and there was only one element in the properties list. | ||||
Steps To Reproduce | On a model, in the method: @Override protected List<String> getQuery(JSONObject jsonsent) Add more than one query to the return. Login into the POS. | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2020-11-20 04:42 | lbressan | New Issue | |||
2020-11-20 04:42 | lbressan | Assigned To | => Retail | ||
2020-11-20 04:42 | lbressan | Triggers an Emergency Pack | => No | ||
2020-11-23 11:21 | marvintm | Project | POS2 => Retail Modules | ||
2020-11-23 11:21 | marvintm | Category | Core => Web POS |
There are no notes attached to this issue. |