Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0038950 | Openbravo ERP | A. Platform | public | 2018-07-13 12:15 | 2019-05-21 15:16 |
|
Reporter | alostale | |
Assigned To | alostale | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR19Q3 | |
Merge Request Status | |
Review Assigned To | caristu |
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 | 0038950: use bind-parameters in Preferences.java |
Description | This piece of code is injecting params by String concatenation:
List<String> parentTree = OBContext.getOBContext().getOrganizationStructureProvider(client)
.getParentList(org, true);
String parentOrgs = "(" + StringCollectionUtils.commaSeparated(parentTree) + ")";
hql.append(" and coalesce(p.visibleAtOrganization, '0') in " + parentOrgs); |
Steps To Reproduce | - |
Proposed Solution | Hibernate supports setting IN parameters as a Collection, replace this code for a param. |
Additional Information | |
Tags | No tags attached. |
Relationships | blocks | design defect | 0038136 | | acknowledged | Triage Platform Base | Tracking issue: Find & Fix queries not using bind-params but embedding values into query string |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2018-07-13 12:15 | alostale | New Issue | |
2018-07-13 12:15 | alostale | Assigned To | => platform |
2018-07-13 12:15 | alostale | Modules | => Core |
2018-07-13 12:15 | alostale | Triggers an Emergency Pack | => No |
2018-07-13 12:15 | alostale | Relationship added | blocks 0038136 |
2018-08-03 08:57 | alostale | Status | new => acknowledged |
2019-04-26 10:27 | hgbot | Checkin | |
2019-04-26 10:27 | hgbot | Note Added: 0111352 | |
2019-04-26 10:27 | hgbot | Status | acknowledged => resolved |
2019-04-26 10:27 | hgbot | Resolution | open => fixed |
2019-04-26 10:27 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/66c41204bce2f25473854a6851a228f568705da6 [^] |
2019-04-29 17:28 | shuehner | Assigned To | platform => alostale |
2019-05-03 07:46 | alostale | Review Assigned To | => caristu |
2019-05-10 15:27 | caristu | Note Added: 0111626 | |
2019-05-10 15:27 | caristu | Status | resolved => closed |
2019-05-10 15:27 | caristu | Fixed in Version | => 3.0PR19Q3 |
2019-05-21 15:16 | hudsonbot | Checkin | |
2019-05-21 15:16 | hudsonbot | Note Added: 0112001 | |