Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028214Openbravo ERPA. Platformpublic2014-11-18 17:012015-01-13 07:49
egoitz 
AugustoMauch 
immediatemajorhave not tried
closedfixed 
5
 
3.0PR15Q13.0PR15Q1 
alostale
Core
Production - Confirmed Stable
2014-01-10
3.0PR14Q2
https://code.openbravo.com/erp/devel/pi/rev/c171ecac2673 [^]
No
0028214: The _selectedProperties parameter is not working on json rest webservices when not specifying a concrete record_id
The _selectedProperties parameter is not working on json rest webservices when not specifying a concrete record_id
That works:

https://livebuilds.openbravo.com/erp_pi_pgsql/org.openbravo.service.json.jsonrest/Country/100?_selectedProperties=id,name [^]


That does not work as expected:
https://livebuilds.openbravo.com/erp_pi_pgsql/org.openbravo.service.json.jsonrest/Country/?_selectedProperties=id,name [^]
No tags attached.
caused by defect 0025461 closed alostale JSON WebServices don't support big volumes 
related to defect 0037424 closed alostale Export To Csv too slow with high volumes 
Issue History
2014-11-18 17:01egoitzNew Issue
2014-11-18 17:01egoitzAssigned To => AugustoMauch
2014-11-18 17:01egoitzModules => Core
2014-11-18 17:01egoitzResolution time => 1416610800
2014-11-18 17:01egoitzRegression level => Production - Confirmed Stable
2014-11-18 17:01egoitzRegression introduced in release => 3.0PR14Q2
2014-11-18 17:01egoitzTriggers an Emergency Pack => No
2014-11-18 21:53AugustoMauchRegression date => 2014-01-10
2014-11-18 21:53AugustoMauchRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/c171ecac2673 [^]
2014-11-18 21:54AugustoMauchIssue Monitored: alostale
2014-11-18 21:54AugustoMauchReview Assigned To => alostale
2014-11-18 22:11hgbotCheckin
2014-11-18 22:11hgbotNote Added: 0071795
2014-11-18 22:11hgbotStatusnew => resolved
2014-11-18 22:11hgbotResolutionopen => fixed
2014-11-18 22:11hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/cf6e3f98cd6c3686895e65fca50dcb0dc03823a9 [^]
2014-11-21 14:27hgbotCheckin
2014-11-21 14:27hgbotNote Added: 0071888
2014-11-21 14:28alostaleNote Added: 0071889
2014-11-21 14:28alostaleStatusresolved => closed
2014-11-21 14:28alostaleFixed in Version => 3.0PR15Q1
2014-12-30 23:25hudsonbotCheckin
2014-12-30 23:25hudsonbotNote Added: 0073080
2014-12-30 23:26hudsonbotCheckin
2014-12-30 23:26hudsonbotNote Added: 0073123
2015-01-13 07:49alostaleRelationship addedcaused by 0025461
2017-12-01 13:01alostaleRelationship addedrelated to 0037424

Notes
(0071795)
hgbot   
2014-11-18 22:11   
Repository: erp/devel/pi
Changeset: cf6e3f98cd6c3686895e65fca50dcb0dc03823a9
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Nov 18 22:10:10 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/cf6e3f98cd6c3686895e65fca50dcb0dc03823a9 [^]

Fixes issue 28214: _selectedProperties parameter work in JSON REST webservice

In a call to the Openbravo JSON REST webservice, the _selectedProperties parameter allows the user to specify the set of properties whose values should be returned by the webservice. This property was working properly when an ID is specified in the request, but not if it is not specified.

This stopped working because of this issue [1]. [1] implements a new method to handlle the case when the ID is not specified to improve the performance, but its missing the handling of _selectedProperties.

[1] https://code.openbravo.com/erp/devel/pi/rev/c171ecac2673 [^]

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
---
(0071888)
hgbot   
2014-11-21 14:27   
Repository: erp/devel/pi
Changeset: 4fb0bc73284650b33e3e02b4a49638cf6ca6d8c7
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Nov 21 14:25:25 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/4fb0bc73284650b33e3e02b4a49638cf6ca6d8c7 [^]

related to bug 28214: added test case

---
M src-test/src/org/openbravo/test/AllWebserviceTests.java
A src-test/src/org/openbravo/test/webservice/JSONWebServices.java
---
(0071889)
alostale   
2014-11-21 14:28   
code reviewed
tested
added automated test case
(0073080)
hudsonbot   
2014-12-30 23:25   
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/6525fe229e06 [^]
Maturity status: Test
(0073123)
hudsonbot   
2014-12-30 23:26   
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/6525fe229e06 [^]
Maturity status: Test