Issue Details (XML | Word | Printable)

Key: CORE-5991
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Vlad Khorsun
Reporter: Vlad Khorsun
Votes: 0
Watchers: 1

If you were logged in you would be able to see more operations.
Firebird Core

Trace could not work correctly with quoted file names in trace configurations

Created: 24/Jan/19 10:02 AM   Updated: 27/Feb/19 09:03 AM
Component/s: Engine
Affects Version/s: 4.0 Initial, 3.0.0, 3.0.1, 3.0.2, 4.0 Alpha 1, 3.0.3, 3.0.4
Fix Version/s: 4.0 Beta 1, 3.0.5

QA Status: Done with caveats
Test Details:
Name of log for audit can not be tested: FB instance must be restarted in this case.
Checked issues related only to name of database file.

 Description  « Hide
Trace configuration allows to specify file names in two places:
a) at "database" section header as file name pattern
b) at "log_filename" parameter, used to specify file name for audit log

Double quotes works as expected, the issue is about single quoted values.

When trace session with such configuration is active and user attached to some database,
the following happens:

In the case (a) error is reported:

Error creating trace session for database "DBNAME":
error while parsing trace configuration
        line 15: error while compiling regular expression "'PATTERN'"

where DBNAME is the database name from connection string and 'PATTERN' is database pattern from trace configuration.
Error is reported via trace log (in case of user trace session) or firebird.log (in case of audit trace session).

In the case (b) the audit log file is not created and error is not logged (it will be adressed in separate ticket).

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.