Audit Log Creates Invalid JSON

Bug #1642375 reported by Matthew B
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
New
Undecided
Unassigned

Bug Description

The audit_log plugin does not produce valid JSON strings when <tab> is contained in the query. Please add the following patch to filter/escape tab in JSON output.

diff --git a/audit_log.c b/audit_log.c
index 39078fa..4c3224d 100644
--- a/audit_log.c
+++ b/audit_log.c
@@ -224,6 +224,7 @@ void json_escape(const char *in, size_t *inlen, char *out, size_t *outlen)
     { '"', 2, "\\\"" },
     { '\r', 2, "\\r" },
     { '\n', 2, "\\n" },
+ { '\t', 2, "\\t" },
     { 0, 0, NULL }
   };

Tags: audit
tags: added: audit
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.