Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-4547

Empty regex // is not treated as empty

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 6.4.5, 22.08.4, 23.02.0
    • 6.4.6, 22.08.5, 23.02.1
    • Core
    • 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.

      Attachments

        Activity

          People

            markus makela markus makela
            markus makela markus makela
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.