Audit log truncates queries after new line character

Description

With audit_log_format set to XML (new, old) the logged queries are truncated just after newline character:

Query 1

becomes:

Audit record 1

Query 2

becomes

Audit record 2

Query 3

becomes:

Audit record 3

It works fine with audit_log_format=JSON

Audit record with JSON log format

I wasn't able to reproduce it on 8.0.

Environment

None

AFFECTED CS IDs

CS0026797

Smart Checklist

Activity

Show:

Oleksandr Kachan May 26, 2022 at 1:29 PM

Fixed escape rules for special characters. The PS 8.0 is not affected by the issue, only MTR test was added.

Done

Details

Assignee

Reporter

Time tracking

1d logged

Affects versions

Priority

Smart Checklist

Created May 6, 2022 at 1:54 PM
Updated March 6, 2024 at 10:11 AM
Resolved May 26, 2022 at 1:29 PM