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

Warning about missing slashes around regular expressions is confusing

    XMLWordPrintable

Details

    • MXS-SPRINT-206, MXS-SPRINT-207

    Description

      The warning about regular expressions missing slashes around them is not clear enough and is easy to misinterpret, especially if the pattern itself uses slashes or backslashes.

      For example, the following is logged with a simple pattern like match01=hello world in namedserverfilter:

      2024-04-19 11:12:54   warning: match01: Missing slashes (/) around a regular expression is deprecated.
      2024-04-19 11:12:54   warning: match01: Missing slashes (/) around a regular expression is deprecated.
      2024-04-19 11:12:54   warning: match01: Missing slashes (/) around a regular expression is deprecated.
      

      The fact that it's logged multiple times is also very confusing.

      An improvement to the warning would be something like this that shows the correct syntax:

      2024-04-19 11:12:54   warning: Missing slashes (/) around a regular expression is deprecated, use 'match01=/hello world/' instead of 'match01=hello world'.
      

      Attachments

        Activity

          People

            markus makela markus makela
            markus makela markus makela
            Votes:
            1 Vote for this issue
            Watchers:
            2 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.