Skip to content

use-native-decoding=true does not work when combined with function composition #1144

Closed
@carolmorneau

Description

@carolmorneau

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 expect skipInputConversion=true and converters to not be called.

Expected behavior

I would expect the framework to not attempt payload conversion when use-native-decoding=true

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions