Skip to content

Conversation

@btriller
Copy link
Contributor

Currently, classfilterdata() does not return a variable for array_of_XXXs if given data structure's value do not comply completely to given array_of_XXXs parameter.
On the other hand, classfilterdata() does return a variable when given object_of_XXXs even if this variable does not completely comply to object_of_XXXs.

This patch changes classfilterdata() to not return a variable as well for object_of_XXXs in case given data structure's does not comply. Also add an acceptance test for it.
This patch also fixes a compiler warning mayby-uninitialized of variable remove in FnCallClassFilterData() in case parent is of type JSON object.

Currently, classfilterdata() does not return a variable for
array_of_XXXs if given data structure's value do not comply completely
to given array_of_XXXs parameter.
On the other hand, classfilterdata() does return a variable when given
object_of_XXXs even if this variable does not completely comply to
object_of_XXXs.

This patch changes classfilterdata() to not return a variable as well
for object_of_XXXs in case given data structure's does not comply.
Also add an acceptance test for it.
This patch also fixes a compiler warning mayby-uninitialized of variable
remove in FnCallClassFilterData() in case parent is of type JSON object.
@larsewi larsewi self-assigned this Jan 17, 2026
@larsewi larsewi self-requested a review January 17, 2026 18:57
Copy link
Contributor

@larsewi larsewi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @btriller 🚀

@larsewi larsewi added the cherry-pick? Fixes which may need to be cherry-picked to LTS branches label Jan 19, 2026
@larsewi
Copy link
Contributor

larsewi commented Jan 19, 2026

@cf-bottom Jenkins please :)

@cf-bottom
Copy link

@larsewi larsewi merged commit e1886c3 into cfengine:master Jan 19, 2026
43 of 44 checks passed
@larsewi
Copy link
Contributor

larsewi commented Jan 19, 2026

Back ported to #6023

@larsewi larsewi removed the cherry-pick? Fixes which may need to be cherry-picked to LTS branches label Jan 19, 2026
@btriller btriller deleted the uninitialized branch January 20, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants