Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0032629 | Openbravo ERP | A. Platform | public | 2016-04-08 12:13 | 2016-04-18 08:37 | |||||||
Reporter | alostale | |||||||||||
Assigned To | caristu | |||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | 3.0PR16Q1.1 | Fixed in Version | 3.0PR16Q1.1 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | caristu | |||||||||||
OBNetwork customer | No | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0032629: cannot propagate privileges if a template role has been used in a session | |||||||||||
Description | When a standard role that has been used in sessions, is marked as template and tried to be set as parent for another role, privileges propagation fails and the parent-child relationship cannot be saved. | |||||||||||
Steps To Reproduce | 1. Create a new role: * name: bt * level: client+org * manual: yes * template: no * org access: EspaƱa Norte * user: assignment: Openbravo * window access: Sales Order 2. Login with Openbravo user using that role 3. Open Sales Order window 4. Edit that role to set template=yes 5. Create a new manual role with client+org access level 6. In Role Inheritance tab add a new record inherit from: bt -> ERROR in UI: Saving failed. With your current role this action is not allowed. In logs: 3475468 [http-8080-2] ERROR org.openbravo.base.exception.OBSecurityException - Client (0) of object (ADPreference(ECFEC09198D847CAB8C2881B86D438EF) (property: UINAVBA_MenuRecentList)) is not present in ClientList 23C59575B9CF467C9620760EB255B389 org.openbravo.base.exception.OBSecurityException: Client (0) of object (ADPreference(ECFEC09198D847CAB8C2881B86D438EF) (property: UINAVBA_MenuRecentList)) is not present in ClientList 23C59575B9CF467C9620760EB255B389 at org.openbravo.dal.security.SecurityChecker.checkWriteAccess(SecurityChecker.java:171) at org.openbravo.dal.core.OBInterceptor.doEvent(OBInterceptor.java:343) at org.openbravo.dal.core.OBInterceptor.onSave(OBInterceptor.java:225) at org.hibernate.event.def.AbstractSaveEventListener.substituteValuesIfNecessary(AbstractSaveEventListener.java:413) at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:292) at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:203) at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:143) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:117) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93) at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:685) at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:677) at org.openbravo.dal.core.SessionHandler.save(SessionHandler.java:176) at org.openbravo.dal.service.OBDal.save(OBDal.java:249) at org.openbravo.role.inheritance.RoleInheritanceManager.copyRoleAccess(RoleInheritanceManager.java:124) at org.openbravo.role.inheritance.RoleInheritanceManager.handleAccess(RoleInheritanceManager.java:587) at org.openbravo.role.inheritance.RoleInheritanceManager.calculateAccesses(RoleInheritanceManager.java:539) at org.openbravo.role.inheritance.RoleInheritanceManager.calculateAccesses(RoleInheritanceManager.java:509) at org.openbravo.role.inheritance.RoleInheritanceManager.applyNewInheritance(RoleInheritanceManager.java:200) | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2016-04-08 12:24 | alostale | Type | defect => backport | |||||||||
2016-04-08 12:24 | alostale | Target Version | => 3.0PR16Q1.2 | |||||||||
2016-04-14 17:47 | caristu | Target Version | 3.0PR16Q1.2 => 3.0PR16Q1.1 | |||||||||
2016-04-14 17:50 | hgbot | Checkin | ||||||||||
2016-04-14 17:50 | hgbot | Note Added: 0085649 | ||||||||||
2016-04-14 17:50 | hgbot | Status | scheduled => resolved | |||||||||
2016-04-14 17:50 | hgbot | Resolution | open => fixed | |||||||||
2016-04-14 17:50 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR16Q1.1/rev/a0ea560e1284b1b71bdcc54d5072f6ce5021fd1a [^] | |||||||||
2016-04-18 08:37 | alostale | Assigned To | platform => caristu | |||||||||
2016-04-18 08:37 | alostale | Review Assigned To | => caristu | |||||||||
2016-04-18 08:37 | alostale | Note Added: 0085689 | ||||||||||
2016-04-18 08:37 | alostale | Status | resolved => closed | |||||||||
2016-04-18 08:37 | alostale | Fixed in Version | => 3.0PR16Q1.1 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|