Openbravo Issue Tracking System - Openbravo ERP |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0040699 | Openbravo ERP | Z. Others | public | 2019-04-04 13:38 | 2019-05-03 12:02 |
|
| Reporter | alostale | |
| Assigned To | nonofrancisco | |
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 5 | OS Version | |
| Product Version | | |
| Target Version | 3.0PR19Q2 | Fixed in Version | 3.0PR19Q2 | |
| Merge Request Status | |
| Review Assigned To | vmromanos |
| OBNetwork customer | No |
| Web browser | |
| Modules | Core |
| Support ticket | |
| Regression level | |
| Regression date | |
| Regression introduced in release | |
| Regression introduced by commit | |
| Triggers an Emergency Pack | No |
|
| Summary | 0040699: use bind-parameters in FactLine |
| Description | FactLine.getDescription method is generating a sql setting parameters by String concatenation, replace tokens by bind parameters.
|
| Steps To Reproduce | - |
| Proposed Solution | If query can be executed in Dal transaction can be done as:
strSql = strSql.replaceAll("@RecordId@", ":recordId").replaceAll("@Line@", ":lineId");
description.append(OBDal.getInstance().getSession()
.createNativeQuery(strSql)
.setParameter("lineId", localStrLine)
.setParameter("recordId", strRecord_ID)
.uniqueResult());
|
| Additional Information | |
| Tags | No tags attached. |
| Relationships | | blocks | defect | 0040523 | | closed | nonofrancisco | use bind-parameters in FactLine |
|
| Attached Files | |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2019-04-29 13:34 | nonofrancisco | Type | defect => backport |
| 2019-04-29 13:34 | nonofrancisco | Target Version | => 3.0PR19Q2 |
| 2019-05-03 11:28 | hgbot | Checkin | |
| 2019-05-03 11:28 | hgbot | Note Added: 0111466 | |
| 2019-05-03 11:28 | hgbot | Status | scheduled => resolved |
| 2019-05-03 11:28 | hgbot | Resolution | open => fixed |
| 2019-05-03 11:28 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR19Q2/rev/a6071ba31e77bbd096a9ea96de16cb61eac7b7bd [^] |
| 2019-05-03 11:28 | hgbot | Checkin | |
| 2019-05-03 11:28 | hgbot | Note Added: 0111467 | |
| 2019-05-03 12:02 | vmromanos | Review Assigned To | => vmromanos |
| 2019-05-03 12:02 | vmromanos | Note Added: 0111471 | |
| 2019-05-03 12:02 | vmromanos | Status | resolved => closed |
| 2019-05-03 12:02 | vmromanos | Fixed in Version | => 3.0PR19Q2 |