SolaceProducts / solace-spring-cloud

An umbrella project containing all Solace projects for Spring Cloud
Apache License 2.0
22 stars 15 forks source link

headerExclusions: for inbound messages #235

Closed GreenRover closed 7 months ago

GreenRover commented 1 year ago

We currently face a problem with the headerExclusions options.

The situation: Spring boot 2.7 application sends out messages with spring-cloud-stream And will add unintentionally following header to messages. nativeHeaders: a base 64 encoded thing solace_scst_serializedHeaders: [nativeHeaders, id]

A spring boot 3.1.2 application wants to receive those messages via spring-cloud-stream But spring-cloud-stream changed the model of the nativeHeaders This leads to be not able to consume the message with the new application, without modifying the old data sender.

The solution Add option headerExclusions for message consumer as well.

Nephery commented 7 months ago

Fixed with #279