Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0041259 | Openbravo ERP | 09. Financial management | public | 2019-06-27 18:09 | 2019-08-01 08:41 | |||||||
Reporter | shuehner | |||||||||||
Assigned To | collazoandy4 | |||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | 3.0PR19Q2.1 | Fixed in Version | 3.0PR19Q2.1 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | dmiguelez | |||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0041259: PaymentReportDao is not using bind-param | |||||||||||
Description | Several cases in that file are not using bind-param both for simple values i.e. here: hsqlScript.append(" and fpsd."); hsqlScript.append(FIN_PaymentScheduleDetail.PROPERTY_ORGANIZATION); hsqlScript.append(".id = '"); hsqlScript.append(strOrg); hsqlScript.append("'"); as well as for list of values in in-clauses: hsqlScript.append(".id in ('"); Set<String> orgChildTree = OBContext.getOBContext() .getOrganizationStructureProvider() .getChildTree(strOrg, true); Iterator<String> orgChildTreeIter = orgChildTree.iterator(); while (orgChildTreeIter.hasNext()) { hsqlScript.append(orgChildTreeIter.next()); orgChildTreeIter.remove(); hsqlScript.append("'"); if (orgChildTreeIter.hasNext()) { hsqlScript.append(", '"); } } hsqlScript.append(")"); } Note: that setParameterList can be easily use to pass value lists directly see issue 40580 for an example | |||||||||||
Steps To Reproduce | - | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2019-07-03 17:00 | shuehner | Type | defect => backport | |||||||||
2019-07-03 17:00 | shuehner | Target Version | => 3.0PR19Q2.1 | |||||||||
2019-07-16 16:41 | hgbot | Checkin | ||||||||||
2019-07-16 16:41 | hgbot | Note Added: 0113434 | ||||||||||
2019-07-16 16:41 | hgbot | Status | scheduled => resolved | |||||||||
2019-07-16 16:41 | hgbot | Resolution | open => fixed | |||||||||
2019-07-16 16:41 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR19Q2.1/rev/4393aa2729fabff8fbc81bc19af21ab23db6e772 [^] | |||||||||
2019-07-16 16:42 | dmiguelez | Review Assigned To | => dmiguelez | |||||||||
2019-07-16 16:42 | dmiguelez | Note Added: 0113437 | ||||||||||
2019-07-16 16:42 | dmiguelez | Status | resolved => closed | |||||||||
2019-07-16 16:42 | dmiguelez | Fixed in Version | => 3.0PR19Q2.1 | |||||||||
2019-08-01 08:41 | Sandrahuguet | Assigned To | Triage Finance => collazoandy4 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|