Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0019570
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformcriticalhave not tried2012-01-26 15:592012-01-31 08:31
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version3.0MP8
StatusclosedFix in branchFixed in SCM revision4f51e3816793
ProjectionnoneETAnoneTarget Version3.0MP8
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0019570: Saving form layout fails because entity access checker throws error

DescriptionWhen 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 ReproduceLogin 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 Solutiona dal flush should be done before the admin mode is restored inside the PersonalizationActionHandler
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0044613)
hgbot (developer)
2012-01-26 16:03

Repository: erp/devel/pi
Changeset: 4f51e3816793441237b6c0683426dcdb5bd97ca7
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu Jan 26 16:02:37 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/4f51e3816793441237b6c0683426dcdb5bd97ca7 [^]

Fixes issue 19570 Saving form layout fails because entity access checker throws error
Added flush statement before changing back to non admin mode

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/personalization/PersonalizationActionHandler.java
---
(0044670)
hudsonbot (developer)
2012-01-28 04:10

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/8e16ef45b30c [^]

Maturity status: Test
(0044719)
alostale (manager)
2012-01-31 08:31

tested on pi@5a4d3a30f629

- 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 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker