[MXS-1215] The MaxScale configuration file should have a specific regex type. Created: 2017-03-30 Updated: 2017-06-05 Resolved: 2017-06-05 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Core |
| Affects Version/s: | None |
| Fix Version/s: | 2.2.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Johan Wikman | Assignee: | Esa Korhonen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2017-34, 2017-35 |
| Description |
|
In some cases, the value of a key in the MaxScale configuration file is a regular expression. As such, every character of the value is significant. Currently, it is quite error prone as there is no specific starting and terminating character (e.g. quote) for the regular expression. For instance, in the following match= *from *users the space after the equal sign is significant and as will any trailing spaces be, however invisible they might be. To reduce the risk for confusion there should be a specific regex type that requires the regex string to be enclosed in some specific character. E.g. match=" *from *users " Note that whatever the quote character is there must be a way for escaping it to allow its use in the regex itself, or then the requirement must simply be that the first non whitespace character after the equal sign and the last character of the line must be the quote character, which are then simply ignored. |
| Comments |
| Comment by Esa Korhonen [ 2017-05-24 ] |
|
Documentation will follow if code is accepted. |