[MXS-4547] Empty regex // is not treated as empty Created: 2023-03-07  Updated: 2023-03-13  Resolved: 2023-03-10

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 6.4.5, 22.08.4, 23.02.0
Fix Version/s: 6.4.6, 22.08.5, 23.02.1

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


 Description   

All regex parameters that accept the optional surrounding slashes (e.g. match=/hello/) do not treat an empty string and an empty pattern the same way. For example, a REST-API request with "match": "//" and "match": "" are not the same: in the former case the pattern is treated as not empty whereas in the latter case it is treated as empty.

In practice this means that disabling a pattern is not possible with the syntax that uses the optional slashes and a literal empty string must be used. This is especially problematic in the cases where shell escaping makes it difficult to pass empty strings, for example with maxctrl alter filter.


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