-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Milestone
Description
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