Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020530Openbravo ERPA. Platformpublic2012-05-16 17:422012-05-29 12:32
AugustoMauch 
AugustoMauch 
highminoralways
closedfixed 
5
pi 
3.0MP123.0MP12 
Core
No
0020530: Link to inaccessible window in field title
In certain conditions, the title of a field has a link that tries to open a window that is not accessible by the current role.
- Login as F&B Administrator
- Open the Role window
- Open the Window Access Tab
- Delete the User row.
- Logout, login as F&B Administrator again
- Open the Sales Order window
- Open any row in form view.
- In the More Information section, the title of the Sales Representative field is a link that points tot he User window, not accessible by the current role
Modify the initialization of OB.AccessibleEntities so that it does not contain entities not accessible by the current role
No tags attached.
related to design defect 0035677 new Triage Platform Base The logic to show the link to an accessible window in field title is not complete 
Issue History
2012-05-16 17:42AugustoMauchNew Issue
2012-05-16 17:42AugustoMauchAssigned To => AugustoMauch
2012-05-16 17:42AugustoMauchModules => Core
2012-05-16 17:51hgbotCheckin
2012-05-16 17:51hgbotNote Added: 0048707
2012-05-16 17:51hgbotStatusnew => resolved
2012-05-16 17:51hgbotResolutionopen => fixed
2012-05-16 17:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/19f445d28fd23b4a0d7c1f9ae56f2e71dbaf8415 [^]
2012-05-16 18:06hgbotCheckin
2012-05-16 18:06hgbotNote Added: 0048709
2012-05-25 12:12hudsonbotCheckin
2012-05-25 12:12hudsonbotNote Added: 0049147
2012-05-25 12:12hudsonbotCheckin
2012-05-25 12:12hudsonbotNote Added: 0049148
2012-05-29 12:32marvintmStatusresolved => closed
2012-05-29 12:32marvintmFixed in Version => 3.0MP12
2017-04-03 13:52caristuRelationship addedrelated to 0035677

Notes
(0048707)
hgbot   
2012-05-16 17:51   
Repository: erp/devel/pi
Changeset: 19f445d28fd23b4a0d7c1f9ae56f2e71dbaf8415
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed May 16 17:50:36 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/19f445d28fd23b4a0d7c1f9ae56f2e71dbaf8415 [^]

Fixes issue 20530: AccessibleEntities does not contain inaccessible entities

OB.AccessibleEntities is used to check if there should be a link in a title field. If a user does not have access to the window that will be opened when the link is clicked, that entity should not be contained in AccessibleEntities.

The initialization of AccessibleEntities has been modified, so if the window related to an entity is not accessible by the current role, it won't be contained in the list.

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/ApplicationDynamicComponent.java
---
(0048709)
hgbot   
2012-05-16 18:06   
Repository: erp/devel/pi
Changeset: f5d290f7173551f37a0716f0a0d90a387e65f4b0
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed May 16 18:05:08 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f5d290f7173551f37a0716f0a0d90a387e65f4b0 [^]

Related to issue 20530: Code refactored to prevent unnecessary queries.

For some tables it is better not to try to remove them from AccessibleEntities. In that case, the check is done before executing the query that retrieves the table model.

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/ApplicationDynamicComponent.java
---
(0049147)
hudsonbot   
2012-05-25 12:12   
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/5401e185a8b0 [^]

Maturity status: Test
(0049148)
hudsonbot   
2012-05-25 12:12   
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/5401e185a8b0 [^]

Maturity status: Test