Skip to content

encoding-mode attribute of http:outbound-gateway is silently ignore if rest-template is present #3938

@aljopainter

Description

@aljopainter

In what version(s) of Spring Integration are you seeing this issue?

Version 6.0.0-SNAPSHOT and previous

Describe the bug

In http:outbound-gateway, when "encoding-mode" and "rest-template" attributes are both present, "encoding-mode" is silently ignored

To Reproduce

Create an http:output-gateway with both attributes "rest-template" and "encoding-mode" and set, for example, "encoding-mode" to None to discover that the URL is nonetheless encoded.

Expected behavior

Get an error from method "HttpAdapterParsingUtils.verifyNoRestTemplateAttributes". This is as simple as adding "encoding-mode" to the list of attributes in the class member SYNC_REST_TEMPLATE_REFERENCE_ATTRIBUTES

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions