Skip to content

NULL HttpEntity in headerFunction in HTTP inbound gateway #3114

Closed
@andreiamariei

Description

@andreiamariei

When trying to upgrade from version 5.1.8 to 5.2.1, our HTTP inbound gateway started throwing NPEs when evaluating header functions. Our code is quite basic:

IntegrationFlows.from(
                        inboundGateway( gatewayPath )
                                .headerFunction(SOME_HEADER, ent -> getSomeHeaderValue(ent ) )  // ent is null

Seems to be related to the call FunctionExpression.getValue(...) which ignores EvaluationContext.getRootObject()

Do you need more info on this?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions