Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0040888 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | major | have not tried | 2019-05-16 11:27 | 2019-05-17 09:53 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0PR19Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | ed8cbe75deae | ||||
Projection | none | ETA | none | Target Version | 3.0PR19Q1.2 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | caristu | |||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | Production - Confirmed Stable | |||||||
Regression date | 2017-01-30 | |||||||
Regression introduced in release | 3.0PR17Q2 | |||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/15f5de36349f [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0040888: incorrect audit trail for DAL WebServices | |||||||
Description | Data changes performed by DAL WebServices are incorrectly audited. User and process is set randomly. As these requests are not updating ad_context_info table, in case it was previously set within the same database connection that has now been retrieved from the connection pool, it will be reused. | |||||||
Steps To Reproduce | 1. Log in as System Administrator 2. Open Tables and Columns window 3. Select C_City table and set it to fully audited 4. Rebuild and restart Tomcat 5. Execute WSUpdateTest (which creates entries in C_City) 6. Query ad_audit_trail -> Check that entries for c_city have random user + process | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0111715) hgbot (developer) 2019-05-16 12:23 |
Repository: erp/backports/3.0PR19Q1.2 Changeset: ed8cbe75deaec6c2ed11687fcbdf8498e10cdb2d Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Thu May 16 12:11:51 2019 +0200 URL: http://code.openbravo.com/erp/backports/3.0PR19Q1.2/rev/ed8cbe75deaec6c2ed11687fcbdf8498e10cdb2d [^] fixed bug 40888: incorrect audit trail for DAL WebServices DAL WebServices were incorrectly audited because ad_context_info was not set as it was disabled for the thread during login and they are executed in the same thread. This fix consists in: 1. Now after login completion, thread is reset to allow auditing of actions occurred afterward. 2. Correct user id and new WebService process type is set to be audited. Note this didn't occur even before the regression was introduced, reulting in records in ad_audit_trail without user or process information. --- M src-db/database/sourcedata/AD_REF_LIST.xml M src/org/openbravo/erpCommon/security/SessionLogin.java M src/org/openbravo/service/web/BaseWebServiceServlet.java --- |
(0111764) caristu (viewer) 2019-05-17 09:53 |
Reviewed + tested |
![]() |
|||
Date Modified | Username | Field | Change |
2019-05-16 11:30 | alostale | Type | defect => backport |
2019-05-16 11:30 | alostale | Target Version | => 3.0PR19Q1.2 |
2019-05-16 12:23 | hgbot | Checkin | |
2019-05-16 12:23 | hgbot | Note Added: 0111715 | |
2019-05-16 12:23 | hgbot | Status | scheduled => resolved |
2019-05-16 12:23 | hgbot | Resolution | open => fixed |
2019-05-16 12:23 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR19Q1.2/rev/ed8cbe75deaec6c2ed11687fcbdf8498e10cdb2d [^] |
2019-05-17 09:53 | caristu | Note Added: 0111764 | |
2019-05-17 09:53 | caristu | Status | resolved => closed |
2019-05-17 09:53 | caristu | Fixed in Version | => 3.0PR19Q3 |
Copyright © 2000 - 2009 MantisBT Group |