Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029946Openbravo ERPA. Platformpublic2015-05-20 17:142015-06-04 10:57
jonalegriaesarte 
NaroaIriarte 
normalmajorhave not tried
closedfixed 
5
 
3.0PR15Q33.0PR15Q3 
alostale
Core
No
0029946: Inactive records can not be retrieved using XML DAL REST webservices, but yes using JSON webservices
Inactive records can not be retrieved using DAL webservices, using JSON webservices it is possible to put a parameter "_noActiveFilter" in the url and if it is true, the inactive records are shown and if it is false, the inactive records are not shown. In general, it would be interesting to have an option to get inactive records using dal WebServices.
- Country window, deactivate France
- Try the following
https://livebuilds.openbravo.com/erp_pi_pgsql/org.openbravo.service.json.jsonrest/Country?_noActiveFilter=true [^] -> this will show the inactive records.

https://livebuilds.openbravo.com/erp_pi_pgsql/org.openbravo.service.json.jsonrest/Country?_noActiveFilter=false [^] -> this will not show the inactive records.

https://livebuilds.openbravo.com/erp_pi_pgsql/ws/dal/Country [^] -> this will not show the inactive records and it would be interesting to be able to show them if one wants to.
No tags attached.
Issue History
2015-05-20 17:14jonalegriaesarteNew Issue
2015-05-20 17:14jonalegriaesarteAssigned To => platform
2015-05-20 17:14jonalegriaesarteModules => Core
2015-05-20 17:14jonalegriaesarteResolution time => 1433455200
2015-05-20 17:14jonalegriaesarteTriggers an Emergency Pack => No
2015-05-28 16:06alostaleStatusnew => scheduled
2015-05-28 16:06alostaleAssigned Toplatform => NaroaIriarte
2015-05-29 12:49NaroaIriarteReview Assigned To => alostale
2015-05-29 12:49NaroaIriarteSummaryInactive records can not be retrieved using DAL webservices, although using JSON webservices is working fine => Inactive records can not be retrieved using DAL webservices, or using JSON webservices
2015-05-29 12:49NaroaIriarteDescription Updatedbug_revision_view_page.php?rev_id=8707#r8707
2015-05-29 12:49NaroaIriarteIssue Monitored: alostale
2015-06-02 11:54hgbotCheckin
2015-06-02 11:54hgbotNote Added: 0077976
2015-06-02 11:54hgbotStatusscheduled => resolved
2015-06-02 11:54hgbotResolutionopen => fixed
2015-06-02 11:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c5cd8102fff8e62e309ed21cad539ed69bd79b76 [^]
2015-06-02 12:06NaroaIriarteSummaryInactive records can not be retrieved using DAL webservices, or using JSON webservices => Inactive records can not be retrieved using DAL webservices, but yes using JSON webservices
2015-06-02 12:06NaroaIriarteDescription Updatedbug_revision_view_page.php?rev_id=8724#r8724
2015-06-02 12:06NaroaIriarteSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8726#r8726
2015-06-02 18:42hudsonbotCheckin
2015-06-02 18:42hudsonbotNote Added: 0078002
2015-06-04 10:42alostaleSummaryInactive records can not be retrieved using DAL webservices, but yes using JSON webservices => Inactive records can not be retrieved using XML DAL REST webservices, but yes using JSON webservices
2015-06-04 10:46alostaleNote Added: 0078050
2015-06-04 10:57alostaleNote Added: 0078051
2015-06-04 10:57alostaleStatusresolved => closed
2015-06-04 10:57alostaleFixed in Version => 3.0PR15Q3

Notes
(0077976)
hgbot   
2015-06-02 11:54   
Repository: erp/devel/pi
Changeset: c5cd8102fff8e62e309ed21cad539ed69bd79b76
Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com>
Date: Tue Jun 02 10:30:04 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c5cd8102fff8e62e309ed21cad539ed69bd79b76 [^]

Fixed issue 29946: Inactive records cannot be retrieved using dal WebServices.

It is possible to get the inactive records using JSON WebServices for example, as:

http://localhost:8080/openbravo/org.openbravo.service.json.jsonrest/Country?_noActiveFilter=true [^]

But it is not possible to get the inactive records using dal WebServices.
As it would be interesting to have the choice of showing the inactive records too, as it is possible in the
JSON WebServices, a condition which checks if the "_noActiveFilter" has been included in the "DalWebService"
class.
Now it is possible to chose if one wants to get the inactive fields or not, as in the JSON WebServices:

http://localhost:8080/openbravo/ws/dal/Country?_noActiveFilter=false [^] // The inactive records are not shown.

http://localhost:8080/openbravo/ws/dal/Country?_noActiveFilter=true [^] //The inactive records are shown.

---
M src/org/openbravo/service/rest/DalWebService.java
---
(0078002)
hudsonbot   
2015-06-02 18:42   
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/485db4ce3da0 [^]
Maturity status: Test
(0078050)
alostale   
2015-06-04 10:46   
added test cases: https://code.openbravo.com/erp/devel/pi/rev/997f501a4674 [^]
(0078051)
alostale   
2015-06-04 10:57   
Code reviewed

Tested, now it xml and json REST webservices behave consistently for active/inactive records.