Skip to content

IfPipe#jsonPathExpression evaluation discards non-string results #9151

@tnleeuw

Description

@tnleeuw

Current Behavior

When the IfPipe is configured with jsonPathExpression = "$.root" and expressionValue = "123", then with the input

{root: 123}

The expression evaluates to the ELSE-Forward instead of the THEN-Forward.

When the root value is quoted like a string, so like {root: "123"} the THEN-Forward is selected as expected.

Expected Behavior

I would expect numerical (and boolean) values to be evaluated properly, at least an exact match on value to work (even if decimal parsing cannot be supported).

Environment Information

F!F 9.1 and 9.2-snapshot.

Steps To Reproduce

No response

Configuration

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

Labels

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions