Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016118Openbravo ERPA. Platformpublic2010-12-09 15:032011-05-24 10:55
shuehner 
gorkaion 
normalminorhave not tried
closedfixed 
5
 
 
JSON Datasource
No
0016118: DataToJsonConverter check (for access) selector fields which are defined but marked as isactive ='N'
Start with scenario of issue 14697. Define a selector having no fields.
I.e. Selector based on m_product use that selector in i.e. Sales Order (lines)
Use(create) a role not having access to m_product table (i.e. no windows access to any window based on that table) and try to use the defined selector.

As only _identifier is used by the selector should work fine as those are derived readable.

Now add a defined selector field based on property path "uOM.id" but mark this field as isactive='N'.
Notice that you'll get an exception about access to that inactive field.
closingMay2011
blocks defect 0015387 closed gorkaion DataToJsonConverter check (for access) selector fields which are defined but marked as isactive ='N' 
Issue History
2011-03-03 12:20gorkaionTypedefect => backport
2011-03-03 12:20gorkaionfix_in_branch => 2.50
2011-03-07 16:53hgbotCheckin
2011-03-07 16:53hgbotNote Added: 0034620
2011-03-07 16:53hgbotStatusscheduled => resolved
2011-03-07 16:53hgbotResolutionopen => fixed
2011-03-07 16:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/mods/org.openbravo.userinterface.selector/rev/79315aa8b662ed95585272ec9266fd10334bd3d1 [^]
2011-05-24 10:12dalsasuaTag Attached: closingMay2011
2011-05-24 10:55dalsasuaStatusresolved => closed

Notes
(0034620)
hgbot   
2011-03-07 16:53   
Repository: erp/mods/org.openbravo.userinterface.selector
Changeset: 79315aa8b662ed95585272ec9266fd10334bd3d1
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Mon Mar 07 16:50:01 2011 +0100
URL: http://code.openbravo.com/erp/mods/org.openbravo.userinterface.selector/rev/79315aa8b662ed95585272ec9266fd10334bd3d1 [^]

Fixed issue 16118.Fixed issue 16119.Retrieve only active SelectorFields using OBCriteria.

---
M src/org/openbravo/userinterface/selector/SelectorComponent.java
---