Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027074Openbravo ERPC. Securitypublic2014-07-15 12:302014-08-08 18:53
jonalegriaesarte 
alostale 
normalminorhave not tried
closedfixed 
5
 
3.0PR14Q43.0PR14Q4 
shankarb
Core
No
0027074: Role window, widget class tab, the user can add the same widget several times
Role window, widget class tab, the user can add the same widget several times
- Role window
- Widget class
- Add the same widget several times
No tags attached.
has duplicate defect 00270433.0PR14Q4 closed AugustoMauch Duplicate records could be created in Widget Class Access, View Implementation and Process Definition tabs of Role window 
Issue History
2014-07-15 12:30jonalegriaesarteNew Issue
2014-07-15 12:30jonalegriaesarteAssigned To => AugustoMauch
2014-07-15 12:30jonalegriaesarteModules => Core
2014-07-15 12:30jonalegriaesarteResolution time => 1405807200
2014-07-15 12:30jonalegriaesarteTriggers an Emergency Pack => No
2014-07-15 13:29alostaleAssigned ToAugustoMauch => inigosanchez
2014-07-22 10:02alostaleAssigned Toinigosanchez => alostale
2014-07-22 10:03alostaleReview Assigned To => shankarb
2014-07-22 10:04alostaleNote Added: 0068783
2014-07-22 10:07alostaleNote Added: 0068785
2014-07-22 10:09hgbotCheckin
2014-07-22 10:09hgbotNote Added: 0068786
2014-07-22 10:09hgbotStatusnew => resolved
2014-07-22 10:09hgbotResolutionopen => fixed
2014-07-22 10:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d01e66ec153da855746d86fe4ed0fff2579d1a7a [^]
2014-07-23 11:51shankarbNote Added: 0068835
2014-07-23 11:51shankarbStatusresolved => closed
2014-07-23 11:51shankarbFixed in Version => 3.0PR14Q4
2014-07-28 08:18alostaleRelationship addedhas duplicate 0027043
2014-08-08 18:53hudsonbotCheckin
2014-08-08 18:53hudsonbotNote Added: 0069203

Notes
(0068783)
alostale   
2014-07-22 10:04   
In order to maintain backwards compatibility, the fix for this issue is implemented as an EntityPersistenceEventObserver instead of as a DB constraint.

After the patch is applied new duplicated entries will not be allowed, but existent duplicates will remain.
(0068785)
alostale   
2014-07-22 10:07   
In addition to Widget Class, the same restriction was missing in View Implementation and Process Definition access tabs.

Executed test cases:
-For the 3 modified tabs (Widget Class Access, View Implementation Access and Process Definition Access):
  * Try to insert 2 values for the same Role & Object -> It is not allowed
  * Try to insert a not duplicated value -> Allowed
  * Edit a non duplicated value changing it to be a duplicate -> Not allowed
(0068786)
hgbot   
2014-07-22 10:09   
Repository: erp/devel/pi
Changeset: d01e66ec153da855746d86fe4ed0fff2579d1a7a
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Jul 22 10:09:13 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d01e66ec153da855746d86fe4ed0fff2579d1a7a [^]

fixed bug 27074: Widget, Process Def and View Impl access tabs allow duplicates

---
M modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
A modules/org.openbravo.client.application/src/org/openbravo/client/application/event/RoleAccessUniqueHandler.java
---
(0068835)
shankarb   
2014-07-23 11:51   
Code reviewed and verified in pi changeset 276c7bb840e7
(0069203)
hudsonbot   
2014-08-08 18:53   
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/4450016dee64 [^]
Maturity status: Test