Project

General

Profile

Bug #12269

Regex in metadata.xml don't match when using .

Added by Benoît PECCATTE about 2 years ago. Updated about 2 months ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Techniques
Target version:
Pull Request:
Severity:
Minor - inconvenience | misleading | easy workaround
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Very Small
Priority:
42

Description

Regex on input in metadata.xml are used to match multiline strings.
In this case, we expect to use the regex to match the whole input, so '^' '$' should match start and end of string and '.' should match newlines.

This means the regex should use both 'single line' (aka s) and 'multiple lines' (aka m) options.


Related issues

Related to ncf - Bug #12263: Wrong regex in FileTemplate techniqueReleasedBenoît PECCATTEActions
#1

Updated by Benoît PECCATTE about 2 years ago

  • Related to Bug #12263: Wrong regex in FileTemplate technique added
#2

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 4.1.11 to 4.1.12
#3

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 4.1.12 to 4.1.13
#4

Updated by Benoît PECCATTE almost 2 years ago

  • Target version changed from 4.1.13 to 411
#5

Updated by Benoît PECCATTE almost 2 years ago

  • Target version changed from 411 to 4.1.13
#6

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 4.1.13 to 4.1.14
#7

Updated by Benoît PECCATTE over 1 year ago

  • Target version changed from 4.1.14 to 4.1.15
#8

Updated by François ARMAND over 1 year ago

  • Severity set to Minor - inconvenience | misleading | easy workaround
  • User visibility set to Infrequent - complex configurations | third party integrations
  • Effort required set to Very Small
  • Priority changed from 0 to 46

[problematic ex: <CONSTRAINT><REGEX> in filetemplate)

So, what we want is the regex to be always multiline.

We believe this is not a breaking change because for now, a regex with ^$ would never match multiline fields, so such an input can't have been added.

The change should be only to modify "case class RegexConstraint" to always add DOTALL and MULTILINE modifiers.

#10

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 4.1.15 to 4.1.16
#11

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 4.1.16 to 4.1.17
  • Priority changed from 46 to 45
#12

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 4.1.17 to 4.1.18
#13

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 4.1.18 to 4.1.19
  • Priority changed from 45 to 44
#14

Updated by Alexis MOUSSET about 1 year ago

  • Target version changed from 4.1.19 to 4.1.20
  • Priority changed from 44 to 43
#15

Updated by François ARMAND about 1 year ago

  • Target version changed from 4.1.20 to 4.1.21
  • Priority changed from 43 to 42
#16

Updated by Vincent MEMBRÉ 12 months ago

  • Target version changed from 4.1.21 to 4.1.22
#17

Updated by Vincent MEMBRÉ 11 months ago

  • Target version changed from 4.1.22 to 4.1.23
#18

Updated by Vincent MEMBRÉ 11 months ago

  • Target version changed from 4.1.23 to 4.1.24
#19

Updated by Vincent MEMBRÉ 9 months ago

  • Target version changed from 4.1.24 to 588
#20

Updated by Alexis MOUSSET 9 months ago

  • Target version changed from 588 to 5.0.13
#21

Updated by Vincent MEMBRÉ 7 months ago

  • Target version changed from 5.0.13 to 5.0.14
#22

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 5.0.14 to 5.0.15
#23

Updated by Vincent MEMBRÉ 4 months ago

  • Target version changed from 5.0.15 to 5.0.16
#24

Updated by Alexis MOUSSET about 2 months ago

  • Target version changed from 5.0.16 to 5.0.17

Also available in: Atom PDF