Skip to content

Namespace parser should interpret blank header mapping as "map no headers" [INT-3010] #6985

Open
@spring-operator

Description

@spring-operator

Nathan Williams opened INT-3010 and commented

The reference guide (15.7) explains that providing a value in a mapped-headers attribute overrides the default header mapping logic and maps only those headers which you specify. This implies that leaving the attribute blank would not map any headers, but this is not currently the case. A blank attribute is effectively ignored.

Making up a fake header name like "none" and passing that as the value does accomplish the desired effect, but this workaround is not immediately intuitive. It would be preferable if declaring the attribute, but leaving it blank resulted in a blank list of headers to map.


Affects: 2.2.3

Reference URL: http://forum.springsource.org/showthread.php?137180-Blank-HTTP-Header-Mapping

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions