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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0015015
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2010-10-25 13:302010-10-30 11:24
ReportershuehnerView Statuspublic 
Assigned Togorkaion 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision05b8e6fe855d
ProjectionnoneETAnoneTarget Version
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

0015015: New ad_session_usage_audit fails sometimes on Logout

Descriptionon using the Logout button at least once this error happened

a3196480 1078530 [http-8080-7] ERROR org.openbravo.base.VariablesBase - setSessionValue error: #CurrentAccessLevel:...7
a3196480 1078555 [http-8080-7] WARN org.openbravo.dal.core.OBInterceptor - The object ADSessionUsageAudit(FF8080812BE30F1D012BE31F8FEC0078) (module: 0, javaClassName: org.openbravo.erpCommon.security.Logout) is detected as not new (is its id != null?) but it does not have a current state in the database. This can happen when the id is set but not setNewObject(true); has been called.
a3196480 1078555 [http-8080-7] ERROR org.openbravo.erpCommon.security.Logout - Error captured:
org.hibernate.PropertyValueException: not-null property references a null or transient value: ADSessionUsageAudit.session
    at org.hibernate.engine.Nullability.checkNullability(Nullability.java:72)
    at org.hibernate.event.def.DefaultFlushEntityEventListener.scheduleUpdate(DefaultFlushEntityEventListener.java:270)
    at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:128)
    at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:196)
    at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
    at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
    at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
    at org.openbravo.dal.service.OBDal.flush(OBDal.java:131)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:410)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

So at least in some case ad_session_id might be missing at that flow.
Proposed Solutionskip insert if #AD_Session_ID is not set
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0032179)
hgbot (developer)
2010-10-25 13:47

Repository: erp/devel/pi
Changeset: 05b8e6fe855dda1f188c44f27b5b56acc902f209
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Mon Oct 25 13:47:04 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/05b8e6fe855dda1f188c44f27b5b56acc902f209 [^]

Fixed issue 15015. Don't save usage audit when there is no session id.

---
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
---
(0032208)
hudsonbot (developer)
2010-10-26 10:24

A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/05b8e6fe855d [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/bedab969e4a7 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18742.obx [^]
(0032292)
shuehner (administrator)
2010-10-28 12:06

code-Change Reviewed. Not testable as the issue itself was not reproducible and only happened once.

- Issue History
Date Modified Username Field Change
2010-10-25 13:30 shuehner New Issue
2010-10-25 13:30 shuehner Assigned To => gorkaion
2010-10-25 13:47 hgbot Checkin
2010-10-25 13:47 hgbot Note Added: 0032179
2010-10-25 13:47 hgbot Status new => resolved
2010-10-25 13:47 hgbot Resolution open => fixed
2010-10-25 13:47 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/05b8e6fe855dda1f188c44f27b5b56acc902f209 [^]
2010-10-26 10:24 hudsonbot Checkin
2010-10-26 10:24 hudsonbot Note Added: 0032208
2010-10-28 12:06 shuehner Note Added: 0032292
2010-10-28 12:06 shuehner Status resolved => closed
2010-10-30 11:24 anonymous sf_bug_id 0 => 3098755


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker