Skip to content

[Backport support/2.16] Restore single-argument Json.decode() in the DSL#10921

Merged
Al2Klimov merged 2 commits into
support/2.16from
backport-10914-to-support/2.16
Jun 30, 2026
Merged

[Backport support/2.16] Restore single-argument Json.decode() in the DSL#10921
Al2Klimov merged 2 commits into
support/2.16from
backport-10914-to-support/2.16

Conversation

@backbot-ci

@backbot-ci backbot-ci Bot commented Jun 30, 2026

Copy link
Copy Markdown

Backport of #10914 to support/2.16, triggered by a label.


This is an automated backport PR. Please review it carefully before merging.

eimann added 2 commits June 30, 2026 12:46
The recursion depth limit added to JsonDecode() in 2.16.2 gave the C++
function a second parameter with a default value. Function pointers do not
carry default arguments, so the DSL function binding deduced an arity of 2
via boost::function_types::function_arity and required two arguments. As a
result `Json.decode("...")` failed with "Too few arguments for function",
an undocumented breaking change in a patch release.

Wrap JsonDecode() in a single-argument shim (mirroring the existing
JsonEncodeShim) so the registered function keeps its one-parameter contract
while still applying the default depth limit internally.

refs #10913

(cherry picked from commit d29ac49)
refs #10913

(cherry picked from commit 326cbde)
@backbot-ci backbot-ci Bot added area/configuration DSL, parser, compiler, error handling bug Something isn't working labels Jun 30, 2026
@cla-bot cla-bot Bot added the cla/signed label Jun 30, 2026
@julianbrost julianbrost added this to the 2.16.3 milestone Jun 30, 2026
@julianbrost julianbrost self-requested a review June 30, 2026 13:27
@Al2Klimov Al2Klimov enabled auto-merge June 30, 2026 15:25
@Al2Klimov Al2Klimov merged commit be84a7f into support/2.16 Jun 30, 2026
33 checks passed
@Al2Klimov Al2Klimov deleted the backport-10914-to-support/2.16 branch June 30, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/configuration DSL, parser, compiler, error handling bug Something isn't working cla/signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants