Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018987Openbravo ERP01. General setuppublic2011-11-06 18:392012-03-02 15:37
pjuvara 
alostale 
normalcriticalalways
closedfixed 
5
3.0MP4.1 
3.0MP9 
Core
No
0018987: Inconsistent security access for menus between system client and other clients
In Openbravo the menu definition is done at system level and it should not be possible to see it and modify it at client level.

However, if I connect with a client admin role, I can open the Menu window. While I cannot see the records, I can open the menu tree, see the data and change the order of the records.

The changes commit successfully and impact the whole system; this mean that the admin user of one client is able to affect the behavior of all the other clients, including system.

In a multi-client environment this is a big issue.
See video
You should not be able to open the tree with a client admin role.
No tags attached.
Issue History
2011-11-06 18:39pjuvaraNew Issue
2011-11-06 18:39pjuvaraAssigned To => jonalegriaesarte
2011-11-06 18:39pjuvaraModules => Core
2011-11-06 18:40pjuvaraIssue Monitored: pjuvara
2011-11-06 18:40pjuvaraIssue Monitored: iciordia
2012-02-15 19:04iciordiaAssigned Tojonalegriaesarte => vmromanos
2012-02-16 17:51vmromanosAssigned Tovmromanos => alostale
2012-02-17 11:35hgbotCheckin
2012-02-17 11:35hgbotNote Added: 0045231
2012-02-17 11:35hgbotStatusnew => resolved
2012-02-17 11:35hgbotResolutionopen => fixed
2012-02-17 11:35hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/6409589a6ef9a4e6b856c12b61dd04d03fd1f9c5 [^]
2012-02-17 11:42alostaleNote Added: 0045232
2012-02-17 12:09AugustoMauchNote Added: 0045233
2012-02-17 12:09AugustoMauchStatusresolved => closed
2012-02-17 12:09AugustoMauchFixed in Version => 3.0MP9
2012-03-02 15:37hudsonbotCheckin
2012-03-02 15:37hudsonbotNote Added: 0045880

Notes
(0045231)
hgbot   
2012-02-17 11:35   
Repository: erp/devel/pi
Changeset: 6409589a6ef9a4e6b856c12b61dd04d03fd1f9c5
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Feb 17 11:34:33 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/6409589a6ef9a4e6b856c12b61dd04d03fd1f9c5 [^]

fixed bug 18987: Inconsistent security access for menus

---
M src/org/openbravo/erpCommon/utility/WindowTree.java
---
(0045232)
alostale   
2012-02-17 11:42   
Added access check for parent window to tree popup: no regression risk.

Test plan:
-Menu tree still works for Sys Admin: it opens and it is possible to rearrange items.
-Using Client Admin role trying to open the tree popup shows an error popup
-Other trees (such as Organization and account tree) still work
(0045233)
AugustoMauch   
2012-02-17 12:09   
Code reviewed and verified
(0045880)
hudsonbot   
2012-03-02 15:37   
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/544d64e0c159 [^]

Maturity status: Test