Problem/Motivation
The g2.initial route used to only accept ASCII letters, decimal digits, and space, dash and underscore are valid initials. This has been extended to a non-english-centric view, using Unicode letter and number classes. However, the alphabar throws exceptions when these are included.
Steps to reproduce
- Define a G2 entry like "été"
- Add
éto the alphabar - Navigate to /g2
- Observe the exception
Proposed resolution
The underlying issue is core bug #3369925: Support Unicode regular expressions in routes, from Symfony 4.3: the URL generator does not match requirements using full Unicode matching.
Remaining tasks
Get a fix in core for the bug.
Until then, keep using the restricted legacy regexp, and avoid starting entries with non-ASCII numbers and letters.
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 3369926-13.patch | 10.56 KB | fgm |
| #12 | 3369926-12.patch | 10.56 KB | fgm |
| #11 | 3369926-11.patch | 7.18 KB | fgm |
| #10 | 3369926-10.patch | 4.19 KB | fgm |
| #7 | 3369926-6.patch | 17.89 KB | fgm |
Comments
Comment #2
fgmAdded workaround until core issue is addressed.
Comment #3
fgmGrmph, empty patch.
Comment #5
fgmSchema typo.
Comment #7
fgmSo that's why it exported as 0/1 instead of true/false.
Comment #9
fgmMerged to current dev HEAD.
Comment #10
fgmSome DCS fixes. Wonder why I don't get them locally.
Comment #11
fgmShould have caught them all.
Comment #12
fgmNo, seriously, WTF phpdoc ?
Comment #13
fgmOK, that one was mine.
Comment #14
fgmNo remaining CS issue. Fixed.