Closed
Description
Description
use-native-decoding=true
works as expected when there is no function composition. The skipInputConversion
flag in SimpleFunctionRegistry is properly set and payload conversion is not attempted.
However, if function composition is used in combination with use-native-encoding=true
, the skipInputConversion
flag is always false
and payload conversion is attempted.
To Reproduce
Using this sample project which is based on the function-composition-rabbit sample
- Run the sample with the
issue2945
profile - Send some data to the RabbitMQ exchange (at least 3 messages since batch-size=3)
- Notice that an exception is thrown from
JsonMessageConverter
; however, we would expectskipInputConversion=true
and converters to not be called.
Expected behavior
I would expect the framework to not attempt payload conversion when use-native-decoding=true