Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035399Openbravo ERPA. Platformpublic2017-03-01 16:482017-03-03 10:36
egoitz 
caristu 
normalminoralways
closedfixed 
5
 
3.0PR16Q4.33.0PR16Q4.3 
alostale
Core
Production - Confirmed Stable
2015-11-17
3.0PR16Q1
https://code.openbravo.com/erp/devel/pi/rev/2c0caa49fcc0792e77c29ad705fe662b1eaf12d3 [^]
No
0035399: Not possible to get on the webservice regions of a country when those are defined to client 0.
Having both the countrys and regions (and translations) defined for Client System (0), when getting using xml rest webservices the information for the country, the regions are not shown on the response.
-Access as system adminitrator and define a new region for country spain
-Logout and login with QA testing client.
-Go to the country and region window and see on the region tab that the new region for spain is shown.
-Access to the webservice
/ws/dal/Country/106
and the region is not shown.
No tags attached.
blocks defect 0035397 closed caristu Not possible to get on the webservice regions of a country when those are defined to client 0. 
Issue History
2017-03-01 17:30caristuTypedefect => backport
2017-03-01 17:30caristuTarget Version => 3.0PR16Q4.3
2017-03-02 09:25hgbotCheckin
2017-03-02 09:25hgbotNote Added: 0094676
2017-03-02 09:25hgbotStatusscheduled => resolved
2017-03-02 09:25hgbotResolutionopen => fixed
2017-03-02 09:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q4.3/rev/0cb92027c58534c6b4df14d9546b71730ef7996c [^]
2017-03-02 10:20caristuReview Assigned To => alostale
2017-03-03 10:36alostaleNote Added: 0094719
2017-03-03 10:36alostaleStatusresolved => closed
2017-03-03 10:36alostaleFixed in Version => 3.0PR16Q4.3

Notes
(0094676)
hgbot   
2017-03-02 09:25   
Repository: erp/backports/3.0PR16Q4.3
Changeset: 0cb92027c58534c6b4df14d9546b71730ef7996c
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Mar 02 09:22:31 2017 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4.3/rev/0cb92027c58534c6b4df14d9546b71730ef7996c [^]

fixes issue 35399: Check readable clients for child properties using DAL WS

Fix for issue 0029683 was introducing a security check to avoid showing child properties which belong to a client different from the current client. But this fix was preventing to display some readable objects like master data defined at system level (client 0).

Therefore this security check has been improved and now it is verified if the child property is defined for a client which is readable for the current role.

---
M src/org/openbravo/dal/xml/EntityXMLConverter.java
M src/org/openbravo/service/rest/DalWebService.java
---
(0094719)
alostale   
2017-03-03 10:36   
code reviewed + tested