Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0032631 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | major | have not tried | 2016-04-08 12:22 | 2016-04-18 08:27 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR16Q1.1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 43f2d5b75e3a | ||||
Projection | none | ETA | none | Target Version | 3.0PR16Q1.1 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | alostale | |||||||
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 | 0032631: template role cannot be used as session role | |||||||
Description | When a role marked as template is used to create a session, errors are logged when trying to save some preferences. This makes not possible to save ie. recent navigation items. | |||||||
Steps To Reproduce | 1. Create a new role: * name: bt * level: client+org * manual: yes * template: yes * 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 ERROR in log: 4388732 [http-8080-6] ERROR org.hibernate.LazyInitializationException - failed to lazily initialize a collection of role: ADRole.aDRoleInheritanceInheritFromList, no session or session was closed org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: ADRole.aDRoleInheritanceInheritFromList, no session or session was closed at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383) at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375) at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:368) at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111) at org.hibernate.collection.PersistentBag.iterator(PersistentBag.java:272) at org.openbravo.role.inheritance.RoleInheritanceManager.propagateNewAccess(RoleInheritanceManager.java:380) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:45) at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) at org.openbravo.role.inheritance.RoleInheritanceManager$Proxy$_$$_WeldClientProxy.propagateNewAccess(RoleInheritanceManager$Proxy$_$$_WeldClientProxy.java) at org.openbravo.role.inheritance.InheritedAccessEnabledEventHandler.doAction(InheritedAccessEnabledEventHandler.java:107) at org.openbravo.role.inheritance.InheritedAccessEnabledEventHandler.onSave(InheritedAccessEnabledEventHandler.java:69) | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0085646) hgbot (developer) 2016-04-14 17:43 |
Repository: erp/backports/3.0PR16Q1.1 Changeset: 43f2d5b75e3ae27a9ec56bc672278f17b8595a2f Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Thu Apr 14 17:42:12 2016 +0200 URL: http://code.openbravo.com/erp/backports/3.0PR16Q1.1/rev/43f2d5b75e3ae27a9ec56bc672278f17b8595a2f [^] fixes issue 32631: template role cannot be used as session role Now the injector used for preferences returns the complete Role object and not a proxy, in order to prevent possible LazyInitializationException when using a template role as session role. This was happening because some preferences are created at system level when a session role is making use of the UI. It is also verified that after fixing this issue, those preferences are not being propagated, thanks to the preference black list. --- M src/org/openbravo/role/inheritance/access/PreferenceAccessInjector.java --- |
(0085685) alostale (viewer) 2016-04-18 08:27 |
code reviewed + tested |
![]() |
|||
Date Modified | Username | Field | Change |
2016-04-08 12:25 | alostale | Type | defect => backport |
2016-04-08 12:25 | alostale | Target Version | => 3.0PR16Q1.2 |
2016-04-14 17:42 | caristu | Target Version | 3.0PR16Q1.2 => 3.0PR16Q1.1 |
2016-04-14 17:43 | hgbot | Checkin | |
2016-04-14 17:43 | hgbot | Note Added: 0085646 | |
2016-04-14 17:43 | hgbot | Status | scheduled => resolved |
2016-04-14 17:43 | hgbot | Resolution | open => fixed |
2016-04-14 17:43 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR16Q1.1/rev/43f2d5b75e3ae27a9ec56bc672278f17b8595a2f [^] |
2016-04-18 08:27 | alostale | Review Assigned To | => alostale |
2016-04-18 08:27 | alostale | Note Added: 0085685 | |
2016-04-18 08:27 | alostale | Status | resolved => closed |
2016-04-18 08:27 | alostale | Fixed in Version | => 3.0PR16Q1.1 |
Copyright © 2000 - 2009 MantisBT Group |