Let StringArrayPropertyEditor trim resulting array values [SPR-6195] #10863
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Oliver Drotbohm opened SPR-6195 and commented
Currently the by default registered
StringArrayPropertyEditor
does not trim the String parts of the resulting array. This leads to subtle errors, e.g. if you configure the supported HTTP methods on anWebContentGenerator
as follows:(note the spaces) this does not work, as the comparison with the actual request method is a hard equals. I think trimming the String is a sensible default.
Affects: 3.0 RC1
Referenced from: commits b250c65, 4be237d
The text was updated successfully, but these errors were encountered: