Skip to content

Let StringArrayPropertyEditor trim resulting array values [SPR-6195] #10863

@spring-projects-issues

Description

@spring-projects-issues

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 an WebContentGenerator as follows:

..
<property name="supportedMethods" value="GET, POST, HEAD, DELETE" />
..

(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

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions