Skip to content

filterx/expr-variable: fix assignment tracking for unmarshalled variables#849

Merged
alltilla merged 1 commit intoaxoflow:mainfrom
bazsi:filterx-unmarshalled-variables-should-keep-their-assigned-value
Nov 13, 2025
Merged

filterx/expr-variable: fix assignment tracking for unmarshalled variables#849
alltilla merged 1 commit intoaxoflow:mainfrom
bazsi:filterx-unmarshalled-variables-should-keep-their-assigned-value

Conversation

@bazsi
Copy link
Member

@bazsi bazsi commented Nov 13, 2025

If a just assigned variable is unmarshalled in place, the "assigned" value was always set to FALSE, even if it was originally TRUE. This means that these variables were not synced to the message at the end of the filterx block.

Here's an example:

            $foo = $PROGRAM;
            if ($foo === "whatever") {
            }

The condition unmarshalls the value, causing the "assigned" value for $foo to be set to FALSE.

This means that filterx_scope_sync() will not write this value to the message.

…bles

If a just assigned variable is unmarshalled in place, the "assigned"
value was always set to FALSE, even if it was originally TRUE. This means
that these variables were to synced to the message at the end of
the filterx block.

Here's an example:

                $foo = $PROGRAM;
                if ($foo === "whatever") {
                }

The condition unmarshalls the value, causing the "assigned" value for $foo
to be set to FALSE.

This means that filterx_scope_sync() will not write this value to
the message.

Signed-off-by: Balazs Scheidler <[email protected]>
@bazsi bazsi changed the title filterx/expr-variable: fix assignment tracking for unmarshalled varia… filterx/expr-variable: fix assignment tracking for unmarshalled variables Nov 13, 2025
@alltilla alltilla merged commit 272e58f into axoflow:main Nov 13, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants