Skip to content

package java.net should be included in the DEFAULT_TRUSTED_PACKAGES #1176

@hanishi

Description

@hanishi

Affects Version(s): 2.2.4

The value for the Location key is deserialized as java.net.URI but since it is not included in the DEFAULT_TRUSTED_PACKAGES following exception is thrown when DefaultHttpHeaderMapper tries to handle the message received in its setHttpHeader method.

java.lang.IllegalArgumentException: Expected URI or String value for 'Location' header value, but received: class org.springframework.cloud.stream.binder.kafka.BinderHeaderMapper$NonTrustedHeaderType
	at org.springframework.integration.http.support.DefaultHttpHeaderMapper.setHttpHeader(DefaultHttpHeaderMapper.java:916) ~[spring-integration-http-5.1.3.RELEASE.jar!/:5.1.3.RELEASE]
	at org.springframework.integration.http.support.DefaultHttpHeaderMapper.fromHeaders(DefaultHttpHeaderMapper.java:434) ~[spring-integration-http-5.1.3.RELEASE.jar!/:5.1.3.RELEASE]
	at org.springframework.integration.http.support.DefaultHttpHeaderMapper.fromHeaders(DefaultHttpHeaderMapper.java:74) ~[spring-integration-http-5.1.3.RELEASE.jar!/:5.1.3.RELEASE]
	at org.springframework.integration.http.inbound.HttpRequestHandlingEndpointSupport.setupResponseAndConvertReply(HttpRequestHandlingEndpointSupport.java:407) ~[spring-integration-http-5.1.3.RELEASE.jar!/:5.1.3.RELEASE]

This issue was moved from spring-attic/spring-cloud-stream-binder-kafka#707

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions