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
Operations

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
Vlad Khorsun made changes - 24/Jan/19 10:02 AM
Field Original Value New Value
Assignee Vlad Khorsun [ hvlad ]
Vlad Khorsun made changes - 28/Jan/19 12:16 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 4.0 Beta 1 [ 10750 ]
Fix Version/s 3.0.5 [ 10885 ]
Resolution Fixed [ 1 ]
Pavel Zotov made changes - 27/Feb/19 09:02 AM
Status Resolved [ 5 ] Resolved [ 5 ]
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.
QA Status No test Done with caveats
Pavel Zotov made changes - 27/Feb/19 09:03 AM
Status Resolved [ 5 ] Closed [ 6 ]