Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0038375Openbravo ERP04. Warehouse managementpublic2018-04-16 13:252018-05-09 19:30
dmiguelez 
AtulOpenbravo 
normalmajoralways
closedfixed 
5
 
3.0PR18Q3 
aferraz
Core
No
0038375: Attribute selector in Task Window has problems with Role with limited access
Attribute selector in Task Window has problems with Role with limited access
With AWO and AWO Sampledata installed

Login as AWO QA Admin

Create a new Role that has access to
Organization: US West Coast
Window: Task

Create a new user and assign it to the previous role

Create a new Purchase Order for US West Coast Organization, Be Soft Business Partner, US West Coast Warehouse
Create a line for Laptop Battery Product with any possitive Ordered Quantity
Book the order and click on Receive button.

Log out and log in with the previously created user

Go to Task window and select the previously created task.
Click on the Confirmed Attribute selector and set any values.
Click ok and check that an error is thrown:

"org.openbravo.base.exception.OBSecurityException: Entity AttributeSet is not readable by the user xyz"
In AttributeSetInstance class

In Line 152. Move the set admin mode sentence from below to before doing
AttributeSet attSet = OBDal.getInstance().get(AttributeSet.class, strAttributeSet);
No tags attached.
Issue History
2018-04-16 13:25dmiguelezNew Issue
2018-04-16 13:25dmiguelezAssigned To => dmiguelez
2018-04-17 11:29VictorVillarResolution time => 1525730400
2018-04-17 12:28ngarciaIssue Monitored: ngarcia
2018-04-18 16:45dmiguelezAssigned Todmiguelez => Triage Finance
2018-04-19 13:17vmromanosProjectModules => Openbravo ERP
2018-04-19 13:18vmromanosModules => Core
2018-04-19 13:18vmromanosTriggers an Emergency Pack => No
2018-04-19 13:18vmromanosCategoryAdvance Warehouse Operations => 00. Application dictionary
2018-04-19 13:18vmromanosCategory00. Application dictionary => 04. Warehouse management
2018-04-20 11:20dmiguelezAssigned ToTriage Finance => collazoandy4
2018-04-25 10:08dmiguelezAssigned Tocollazoandy4 => AtulOpenbravo
2018-05-03 21:00AtulOpenbravoStatusnew => scheduled
2018-05-03 22:24AtulOpenbravoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17086#r17086
2018-05-03 22:39AtulOpenbravoNote Added: 0104262
2018-05-07 14:41hgbotCheckin
2018-05-07 14:41hgbotNote Added: 0104308
2018-05-07 14:41hgbotStatusscheduled => resolved
2018-05-07 14:41hgbotResolutionopen => fixed
2018-05-07 14:41hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a1b63a73a71d5ce3a86d58f966823e644bacaf54 [^]
2018-05-07 14:42aferrazReview Assigned To => aferraz
2018-05-07 14:42aferrazNote Added: 0104309
2018-05-07 14:42aferrazStatusresolved => closed
2018-05-07 14:42aferrazFixed in Version => 3.0PR18Q3
2018-05-09 19:30hudsonbotCheckin
2018-05-09 19:30hudsonbotNote Added: 0104434

Notes
(0104262)
AtulOpenbravo   
2018-05-03 22:39   
Test Plan

- Login as F&B International Group Admin
- Create a new Role "Test 38375" that has access to
  - Organization: F&B US West Coast
  - User: Openbravo
  - Window: Goods Receipt
- Create a new Purchase Order for F&B US West Coast Organization, Be Soft Drinker, Inc Business Partner, US West Coast Warehouse
- Create a line for Product "Orange Juice Bio" with 100 as Ordered Quantity
- Book the order.
- Using Pending Goods Receipt, create a Goods Receipts against Purchase Order.
- Notice Error is raised to set Attribute Set for the product Orance Juice bio.

- Log out and log in with the previously created role "Test 38375"
- Navigate to Goods Receipt and go to line with product "Orance Juice bio".
- Try to set Attribute Set Instance for it with some value in Pop up.
-Realize that Attribute Set is properly set without raising any error as mentioned in the issue.
(0104308)
hgbot   
2018-05-07 14:41   
Repository: erp/devel/pi
Changeset: a1b63a73a71d5ce3a86d58f966823e644bacaf54
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Fri May 04 11:31:32 2018 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/a1b63a73a71d5ce3a86d58f966823e644bacaf54 [^]

Fixes Issue 38375: Attribute selector in Task Window has problems
with Role with limited access

Set Admin mode to include piece of code which
accesses AttributeSet objects.

---
M src/org/openbravo/erpCommon/info/AttributeSetInstance.java
---
(0104309)
aferraz   
2018-05-07 14:42   
Code review + Testing OK
(0104434)
hudsonbot   
2018-05-09 19:30   
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/2be7d3efe606 [^]
Maturity status: Test