Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0019570 | Openbravo ERP | A. Platform | public | 2012-01-26 15:59 | 2012-01-31 08:31 |
Reporter | mtaal | ||||
Assigned To | mtaal | ||||
Priority | normal | Severity | critical | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | 3.0MP8 | Fixed in Version | 3.0MP8 | ||
Merge Request Status | |||||
Review Assigned To | |||||
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 | 0019570: Saving form layout fails because entity access checker throws error | ||||
Description | When saving a form layout the flush/commit is done at the end of the commit, at that point the admin mode is not enabled anymore and a entity not writable exception is thrown. | ||||
Steps To Reproduce | Login in to Ob@ob and try to change a form layout and save it, a server side exception is shown, the stacktrace shows that the flush is done at the end of the request. org.openbravo.base.exception.OBSecurityException: Entity OBUIAPP_UIPersonalization is not writable by this user org.openbravo.dal.security.EntityAccessChecker.checkWritable(EntityAccessChecker.java:317) org.openbravo.dal.security.SecurityChecker.checkWriteAccess(SecurityChecker.java:176) org.openbravo.dal.core.OBInterceptor.doEvent(OBInterceptor.java:315) org.openbravo.dal.core.OBInterceptor.onFlushDirty(OBInterceptor.java:179) org.hibernate.event.def.DefaultFlushEntityEventListener.invokeInterceptor(DefaultFlushEntityEventListener.java:372) org.hibernate.event.def.DefaultFlushEntityEventListener.handleInterception(DefaultFlushEntityEventListener.java:349) org.hibernate.event.def.DefaultFlushEntityEventListener.scheduleUpdate(DefaultFlushEntityEventListener.java:287) org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:155) org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:219) org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:99) org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50) org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216) org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:383) org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:133) org.openbravo.dal.core.SessionHandler.commitAndClose(SessionHandler.java:211) org.openbravo.dal.core.DalThreadHandler.doFinal(DalThreadHandler.java:51) org.openbravo.dal.core.DalRequestFilter$1.doFinal(DalRequestFilter.java:99) org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:65) org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:103) | ||||
Proposed Solution | a dal flush should be done before the admin mode is restored inside the PersonalizationActionHandler | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-01-26 15:59 | mtaal | New Issue | |||
2012-01-26 15:59 | mtaal | Assigned To | => mtaal | ||
2012-01-26 15:59 | mtaal | Modules | => Core | ||
2012-01-26 15:59 | mtaal | OBNetwork customer | => No | ||
2012-01-26 16:00 | jpcalvente | Issue Monitored: jpcalvente | |||
2012-01-26 16:03 | hgbot | Checkin | |||
2012-01-26 16:03 | hgbot | Note Added: 0044613 | |||
2012-01-26 16:03 | hgbot | Status | new => resolved | ||
2012-01-26 16:03 | hgbot | Resolution | open => fixed | ||
2012-01-26 16:03 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/4f51e3816793441237b6c0683426dcdb5bd97ca7 [^] | ||
2012-01-28 04:10 | hudsonbot | Checkin | |||
2012-01-28 04:10 | hudsonbot | Note Added: 0044670 | |||
2012-01-31 08:31 | alostale | Note Added: 0044719 | |||
2012-01-31 08:31 | alostale | Status | resolved => closed | ||
2012-01-31 08:31 | alostale | Fixed in Version | => 3.0MP8 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|