Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021736Openbravo ERP00. Application dictionarypublic2012-09-25 09:002012-09-28 14:39
caristu 
AugustoMauch 
highminoralways
closedfixed 
5
pi 
3.0MP173.0MP16 
AugustoMauch
Core
No
0021736: OBSecurity Exception caused by a field definition
If you define a field checking off the following checkboxes at the same time:

- "Displayed"
- "Show in Status Bar"
- "Show in Grid View"

The following error appears in the log:

SEVERE: Servlet.service() for servlet ... threw exception
org.openbravo.base.exception.OBSecurityException: Client (0) of object (ADField(...) (name: ..., tab: ..)) is not present in ClientList ... at org.openbravo.dal.security.SecurityChecker.checkWriteAccess(SecurityChecker.java:168)
1) As System Administrator, go to the [Widnows,tabs and fields] window
2) Choose a window definition (Sales Invoice for example)
3) Go to the [Field] tab and choose a field (Currency for example)
4) Check off the three checkboxes: "displayed", "show in status bar" and "show in grid view"
5) As Group Admin role, go to the window chosen in 2) (Sales Inovice). In our case the following error appears in the log:

org.openbravo.base.exception.OBSecurityException: Client (0) of object (ADField(2770) (name: Currency, tab: 263)) is not present in ClientList 23C59575B9CF467C9620760EB255B389 at org.openbravo.dal.security.SecurityChecker.checkWriteAccess(SecurityChecker.java:168)
No tags attached.
Issue History
2012-09-25 09:00caristuNew Issue
2012-09-25 09:00caristuAssigned To => AugustoMauch
2012-09-25 09:00caristuModules => Core
2012-09-25 09:00caristuResolution time => 1354662000
2012-09-25 09:01caristuIssue Monitored: networkb
2012-09-25 13:52hgbotCheckin
2012-09-25 13:52hgbotNote Added: 0052576
2012-09-25 13:52hgbotStatusnew => resolved
2012-09-25 13:52hgbotResolutionopen => fixed
2012-09-25 13:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e3b100f7652d2dfdf865c715a03fadc2b8c82585 [^]
2012-09-26 12:16AugustoMauchClosed by => AugustoMauch
2012-09-26 12:16AugustoMauchNote Added: 0052620
2012-09-26 12:16AugustoMauchStatusresolved => closed
2012-09-26 12:16AugustoMauchFixed in Version => 3.0MP16
2012-09-28 14:39hudsonbotCheckin
2012-09-28 14:39hudsonbotNote Added: 0052900

Notes
(0052576)
hgbot   
2012-09-25 13:52   
Repository: erp/devel/pi
Changeset: e3b100f7652d2dfdf865c715a03fadc2b8c82585
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Tue Sep 25 13:51:29 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e3b100f7652d2dfdf865c715a03fadc2b8c82585 [^]

Fixes issue 21736: OBSecurity Exception caused by a field definition

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewFieldHandler.java
---
(0052620)
AugustoMauch   
2012-09-26 12:16   
Code reviewed and verified in pi@fd9a9c556093
(0052900)
hudsonbot   
2012-09-28 14:39   
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/6d2f8cffd4b1 [^]

Maturity status: Test