[MXS-4765] Serialization of regular expressions doesn't add escaping slashes Created: 2023-09-17  Updated: 2023-09-19  Resolved: 2023-09-19

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 2.5.28, 6.4.10, 22.08.8, 23.02.4, 23.08.0
Fix Version/s: 6.4.11, 22.08.9, 23.02.5, 23.08.1

Type: Bug Priority: Trivial
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MXS-4707 The match parameters are not regular ... Closed

 Description   

The patterns used to store the value will contain the raw string passed to the ParamRegex class when the correct thing to do would be to store the unescaped pattern and add the escaping characters during serialization. The lack of escaping slashes has been deprecated for a long time so this is mostly a cosmetic thing until the handling of it is removed.

This also fixes the practical semantics of the mxs::RegexValue::pattern() to again correctly return the pattern and not the raw configuration value.


Generated at Thu Feb 08 04:30:59 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.