Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | |||||||||||
0034931 | |||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||
design defect | [Openbravo ERP] A. Platform | major | always | 2017-01-12 17:05 | 2022-02-01 08:08 | ||||||
Reporter | JONHM | View Status | public | ||||||||
Assigned To | Triage Platform Base | ||||||||||
Priority | high | Resolution | open | Fixed in Version | |||||||
Status | acknowledged | Fix in branch | Fixed in SCM revision | ||||||||
Projection | none | ETA | none | Target Version | |||||||
OS | Any | Database | Any | Java version | |||||||
OS Version | Database version | Ant version | |||||||||
Product Version | SCM revision | ||||||||||
Review Assigned To | |||||||||||
Web browser | |||||||||||
Modules | Core | ||||||||||
Regression level | |||||||||||
Regression date | |||||||||||
Regression introduced in release | |||||||||||
Regression introduced by commit | |||||||||||
Triggers an Emergency Pack | No | ||||||||||
Summary | 0034931: Using both WS types return different information for the same user | ||||||||||
Description | When granting some window access to a role (which it suppose to only have permission to view the related tables of that window), it shows different data in both Web Services. It shows more properties to related Entities using JSon web service than using DAL Web Service. Notice that flows of both WS types (DAL and JSon) are different. | ||||||||||
Steps To Reproduce | 1) Create Role "test" in [Role] window: name: test user level: Client+Organization - check "manual" checkbox on and also check on the "Is Web Service Enabled" checkbox -- Then Switch to "Org Access" tab and give access to '*' and finally switch to "Window Access" tab and give access to window "Warehouse and Storage Bins" 2) Create User "test" in [User] window: name: test username: test password: openbravo - Then switch to "User Roles" tab and add the previous created role "test". 3) Using some chrome tool, like 'Postman' to check web services, introduce the URL to check if our user have access to 'Orders' or 'Country' (notice that we tried the issue into Openbravo livebuilds, when trying on a localhost environment it should be replaced by http://localhost:8080/openbravo/ws/dal/... [^]): 3.1) First, let's try the JSon WS: https://livebuilds.openbravo.com/erp_pi_pgsql/org.openbravo.service.json.jsonrest/Order [^] --> Notice that several fields are displayed, like partnerAddress, userContact and more info. 3.2) Then, try it on DAL WS: https://livebuilds.openbravo.com/erp_pi_pgsql/ws/dal/Order [^] --> Notice that only three fields are displayed (documentNo, orderDate, grandTotalAmount) | ||||||||||
Tags | No tags attached. | ||||||||||
Attached Files | Screenshot from 2017-01-12 17-28-10.png [^] (146,133 bytes) 2017-01-12 17:28
| ||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0093433) JONHM (developer) 2017-01-12 17:07 |
- WS DAL: The data is parsed by the EntityXMLConverter class and only takes into account if the entity is derived readable to return only id and identifier. - WS JSON: The data is parse by the DataToJSONConverter class and takes into account if the entity is derived readable or whether the property is allowDerivedRead. |
Issue History | |||
Date Modified | Username | Field | Change |
2017-01-12 17:05 | JONHM | New Issue | |
2017-01-12 17:05 | JONHM | Assigned To | => platform |
2017-01-12 17:05 | JONHM | Modules | => Core |
2017-01-12 17:05 | JONHM | Triggers an Emergency Pack | => No |
2017-01-12 17:07 | JONHM | Note Added: 0093433 | |
2017-01-12 17:25 | JONHM | Summary | Extra granted access to Entities using JSon Web Service => Using both WS types return different information for the same user |
2017-01-12 17:25 | JONHM | Description Updated | View Revisions |
2017-01-12 17:25 | JONHM | Steps to Reproduce Updated | View Revisions |
2017-01-12 17:28 | JONHM | File Added: Screenshot from 2017-01-12 17-28-10.png | |
2017-06-02 10:52 | alostale | Status | new => acknowledged |
2022-02-01 08:08 | alostale | Assigned To | platform => Triage Platform Base |
Copyright © 2000 - 2009 MantisBT Group |