Skip to content

IfPipe should consider non-existing sessionKey in 'getInputFromSessionKey' as empty instead of throwing an error #10166

@MLenterman

Description

@MLenterman

Current Behavior

Non-existing properties and sessionKeys are quite consistently handled as empty/null value in FF. Can't think of any situation where I would like an error when the sessionKey doesn't exist instead of just handling it as empty/null. Don't think there is even a way to check wether a sessionKey exists or not with a pipe beforehand?

Error: "getInputFromSessionKey [resolveRelationships] is not present in session".

Expected Behavior

IfPipe should consider non-existing sessionKey in 'getInputFromSessionKey' as empty/null instead of throwing an error.

Environment Information

FF! 9.4.0-20251213.042333: CRM-API 1.0.2
Running on dfc71a94a161 using Apache Tomcat/11.0.15
Java Version: OpenJDK Runtime Environment (21.0.9+10-LTS)
Heap size: 208.3 MiB, total JVM memory: 448.0 MiB
Free memory: 239.7 MiB, max memory: 3.8 GiB
Free disk space: 964.0 GiB, total disk space: 1006.9 GiB
Up since: 2025-12-15 13:55:57, timezone: Etc/UTC

Steps To Reproduce

No response

Configuration

<IfPipe
                name="ResolveRelationships_Condition"
                getInputFromSessionKey="resolveRelationships"
                expressionValue="true">
                <Forward name="then" path="Handler_Stages_get-Sender" />
                <Forward name="else" path="Map_Stage-Sender" />
            </IfPipe>

Input

No response

What database are you using?

No response

What browsers are you seeing the problem on?

No response

Relevant Log Output

Anything else?

No response

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions