Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022866Openbravo ERPA. Platformpublic2013-01-23 11:402022-02-01 08:07
alostale 
Triage Platform Base 
urgentminorN/A
newopen 
5
 
 
AugustoMauch
Core
No
0022866: Implement a mechanism to log all HTTP Requests
Currently ad_session_usage_audit table (optionally) stores information about requests performed in the system including the time taken to process them. This information can be used to debug some issues (such as performance), but as it was not designed for this purpose it lacks of valuable information: it does store only information about requests served by HttpSecureAppServlet it does not contain information about parameter values.

It should be possible to log information for all requests (including those ones not implemented as HttpSecureAppServlet) including parameter information.
-
* By default this feature is disabled
* It can be enabled in 2 ways:
** DB: information about requests is logged in a new table (ad_session_request_log)
** log file: by enabling log (from log4j.lcf or in Session Preferences) for org.openbravo.erpCommon.security.RequestLogFilter
* Requests to images (png/gif) are not logged

== Limitations ==
Parameters logged by this feature include both query string (part of the URL from the & symbol) and form data (in POST/PUT requests). It will not include request payload: for example for requests with content type "application/json" json objects sent as paramters will not be logged.
No tags attached.
? issue-22866-request-log.export (112,485) 2013-01-23 11:58
https://issues.openbravo.com/file_download.php?file_id=5911&type=bug
Issue History
2013-01-23 11:40alostaleNew Issue
2013-01-23 11:40alostaleAssigned To => alostale
2013-01-23 11:40alostaleModules => Core
2013-01-23 11:40alostaleTriggers an Emergency Pack => No
2013-01-23 11:58alostaleReview Assigned To => AugustoMauch
2013-01-23 11:58alostaleIssue Monitored: AugustoMauch
2013-01-23 11:58alostaleFile Added: issue-22866-request-log.export
2013-01-23 11:59alostaleNote Added: 0055765
2017-04-10 14:37alostaleAssigned Toalostale => platform
2019-10-22 12:54AugustoMauchIssue End Monitor: AugustoMauch
2022-02-01 08:07alostaleAssigned Toplatform => Triage Platform Base

Notes
(0055765)
alostale   
2013-01-23 11:59   
Attached proposed solution patch