Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
12.0-rc-1
-
Unit
-
Unknown
-
N/A
-
N/A
-
Description
Default separators in Static List xobjects are " ", "," and "|", and the default behaviour before XWiki 12.0RC1 was to not consider two following separators. For example, we were able to specify list values such as
Foo, Bar
producing the values Foo and Bar, even if two separators were used.
I don't know if this behaviour was expected or coincidental, but it existed. However we refactored the parsing of Static List as part of XWIKI-16968, and the snippet above now produces three values: Foo, null and Bar.
The null values being produced by the fact that we got a separator, then nothing, then another separator.
I guess that we should skip those null values to preserve the old behaviour.
Attachments
Issue Links
- is related to
-
XWIKI-18530 Adding a naming rule for german ß character does not work
- Closed
- relates to
-
XWIKI-16968 Backslash are not properly escaped in ListProperty values
- Closed
-
XWIKI-18531 Allow to specify empty string value in a StaticList with same separator
- Closed