Skip to content

ENT-10199: Fixed a bug regarding the resolution of namespaces inside function-calls#6213

Open
SimonThalvorsen wants to merge 1 commit into
cfengine:masterfrom
SimonThalvorsen:master
Open

ENT-10199: Fixed a bug regarding the resolution of namespaces inside function-calls#6213
SimonThalvorsen wants to merge 1 commit into
cfengine:masterfrom
SimonThalvorsen:master

Conversation

@SimonThalvorsen

Copy link
Copy Markdown
Contributor

Ticket: ENT-10199
Changelog: Title

Comment thread libpromises/fncall.c Fixed
Comment thread libpromises/fncall.c Fixed
@SimonThalvorsen

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

@olehermanse olehermanse self-requested a review July 2, 2026 23:09
@nickanderson

Copy link
Copy Markdown
Member

In your commit message I think it would be nice to enumerate the functions for which this is now fixed.

@olehermanse

Copy link
Copy Markdown
Member

In your commit message I think it would be nice to enumerate the functions for which this is now fixed.

Also, functions is a bit vague, i assume it means policy functions (not internal C functions).

@olehermanse olehermanse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please look into the NULL scope / bundle, and also improve the changelog entry.

Comment thread libpromises/fncall.c
@SimonThalvorsen SimonThalvorsen changed the title ENT-10199: Fixed a bug where some functions would not understand current namespace ENT-10199: Fixed a bug regarding the resolution of namespaces inside function-calls Jul 6, 2026

@nickanderson nickanderson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am still missing an enuymerated list of policy functions that are affected by the change. I see in your comments read_module_protocal() but I think we should surface the specific list.

@SimonThalvorsen

Copy link
Copy Markdown
Contributor Author

I am still missing an enuymerated list of policy functions that are affected by the change. I see in your comments read_module_protocal() but I think we should surface the specific list.

I changed the wording since as far as I could tell, it would affect all cases of expanding args inside a call, tested it with other functions also referencing variables in other bundles in the same non-default namespace and they all got the same issue without the fix, so rather than enumerating all functions I tried making the changelog-message more generic. But it may need some work to get this across more easily

@olehermanse olehermanse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please add a policy acceptance test. In my eyes the fix looks a bit "weird", like maybe this logic should be inside the expand function(?)

@SimonThalvorsen SimonThalvorsen force-pushed the master branch 2 times, most recently from 06db52d to 2a5a12c Compare July 8, 2026 13:52
@SimonThalvorsen SimonThalvorsen force-pushed the master branch 3 times, most recently from 868b6a9 to 9029771 Compare July 9, 2026 14:57

@olehermanse olehermanse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please use cfengine format to format the test

@SimonThalvorsen SimonThalvorsen force-pushed the master branch 2 times, most recently from b882aa1 to 0f1f63c Compare July 13, 2026 10:05
@SimonThalvorsen SimonThalvorsen requested a review from larsewi July 13, 2026 10:32
Comment thread libpromises/fncall.c Outdated
Comment thread libpromises/fncall.c Outdated
@SimonThalvorsen

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

@SimonThalvorsen

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

@SimonThalvorsen SimonThalvorsen force-pushed the master branch 2 times, most recently from 5d10c3c to 8acec83 Compare July 15, 2026 09:00
…function-calls

Ticket: ENT-10199
Changelog: Title

Signed-off-by: Simon Halvorsen <simon.halvorsen@northern.tech>
@larsewi

larsewi commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

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.

6 participants