Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0045468
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2020-11-20 04:422020-11-23 11:21
ReporterlbressanView Statuspublic 
Assigned ToRetail 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0045468: Bug in the ProcessHQLQuery infrastructure. The system throws an error when there are more than one hqlQuery on a model.

DescriptionThe 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 ReproduceOn a model, in the method:
  @Override
  protected List<String> getQuery(JSONObject jsonsent)
Add more than one query to the return.

Login into the POS.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker