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
…function-calls

Ticket: ENT-10199
Changelog: Title

Signed-off-by: Simon Halvorsen <simon.halvorsen@northern.tech>
@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

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.

5 participants