You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the request body is a valid json object, the BodyHandler converts it to a java object (Map or List).
Since masking cannot be done on the object directly, the AuditHandler converts it to a String first. But it calls the toString() method of the object instead of the reserialize it. The result of the toString() method is not a valid Json format (e.g. missing double quote for key name). So this stops the masking and no audit log recorded.
* Fix audit issue #935 and #936
* Add missing unit test for the JsonPayload
* Move auditInfo into exchange.addExchangeCompleteListener in case other handlers populate it after AuditHandler
Co-authored-by: Steve Hu <[email protected]>
When the request body is a valid json object, the BodyHandler converts it to a java object (Map or List).
Since masking cannot be done on the object directly, the AuditHandler converts it to a String first. But it calls the toString() method of the object instead of the reserialize it. The result of the toString() method is not a valid Json format (e.g. missing double quote for key name). So this stops the masking and no audit log recorded.
There is an outstanding issue related to this #13
The text was updated successfully, but these errors were encountered: