Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025969Openbravo ERPA. Platformpublic2014-03-12 09:562014-03-13 07:41
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
3.0PR14Q2 
alostale
Core
No
0025969: Bug in LinkToParentTreeDatasourceService when the parameters of a query are set
In this line [1] a parameter is added to the query if the variable fetchRoot is false. In this other line [2], regardless of the value of fetchRoot, the value of the parameter is added to the list that will be assigned to the query.

If this function is called with fetchRoot = true, the '?' parameter will not be added to the query, but its value will be assigned as a parameter, resulting in an error.


[1] https://code.openbravo.com/erp/devel/pi/file/95e63d963d4d/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/LinkToParentTreeDatasourceService.java#l249 [^]
[2] https://code.openbravo.com/erp/devel/pi/file/95e63d963d4d/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/LinkToParentTreeDatasourceService.java#l256 [^]
Check the links in the description box.
Only set the value of the parameter if the parameter has been actually added.
No tags attached.
Issue History
2014-03-12 09:56AugustoMauchNew Issue
2014-03-12 09:56AugustoMauchAssigned To => AugustoMauch
2014-03-12 09:56AugustoMauchModules => Core
2014-03-12 09:56AugustoMauchTriggers an Emergency Pack => No
2014-03-12 09:56AugustoMauchIssue Monitored: shankarb
2014-03-12 09:58hgbotCheckin
2014-03-12 09:58hgbotNote Added: 0065088
2014-03-12 09:58hgbotStatusnew => resolved
2014-03-12 09:58hgbotResolutionopen => fixed
2014-03-12 09:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/143dbdd74f2baf507122e13348324efb2e0caa98 [^]
2014-03-12 17:35hudsonbotCheckin
2014-03-12 17:35hudsonbotNote Added: 0065101
2014-03-13 07:41alostaleReview Assigned To => alostale
2014-03-13 07:41alostaleNote Added: 0065112
2014-03-13 07:41alostaleStatusresolved => closed
2014-03-13 07:41alostaleFixed in Version => PR14Q2

Notes
(0065088)
hgbot   
2014-03-12 09:58   
Repository: erp/devel/pi
Changeset: 143dbdd74f2baf507122e13348324efb2e0caa98
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Mar 12 09:57:48 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/143dbdd74f2baf507122e13348324efb2e0caa98 [^]

Fixes issue 25969: Adds properly the value of a parameter to a query object

The value of a parameter is added to a query object only if the parameter has been actually included in the query string.

---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/LinkToParentTreeDatasourceService.java
---
(0065101)
hudsonbot   
2014-03-12 17:35   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9ff7be508001 [^]
Maturity status: Test
(0065112)
alostale   
2014-03-13 07:41   
code reviewed