Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0015015 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | have not tried | 2010-10-25 13:30 | 2010-10-30 11:24 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | gorkaion | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 05b8e6fe855d | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
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 | 0015015: New ad_session_usage_audit fails sometimes on Logout | |||||||
Description | on 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 Solution | skip insert if #AD_Session_ID is not set | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(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 (viewer) 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. |
![]() |
|||
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:30 | shuehner | OBNetwork customer | => No |
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 |