Skip to content

fix: reject non-positive placement indexes instead of wrapping to the last node - #100

Open
zekelinAlex wants to merge 1 commit into
users/alexander.zekelin/applier-pp-security-rolefrom
users/alexander.zekelin/placement-index-guard
Open

zekelinAlex wants to merge 1 commit into
users/alexander.zekelin/applier-pp-security-rolefrom
users/alexander.zekelin/placement-index-guard

Conversation

@zekelinAlex

Copy link
Copy Markdown
Contributor

Ports fix 4 of TALXIS/tools-devkit-templates#152 into the shared FormPlacementResolver. The old scripts selected $nodes[$index - 1], so an index of 0 became [-1] - PowerShell's last element - and silently patched a node the caller never asked for; the C# port inherited the same off-by-trust.

Now anything below 1 hits the regular not-found error, and the error texts state the indexes are 1-based, same wording as #152. One guard covers all seven resolver consumers (row, cell, control, column, section, dialog tab footer, control parameter).

Stacked on the security-role applier PR (#96).

@zekelinAlex
zekelinAlex force-pushed the users/alexander.zekelin/applier-pp-security-role branch from 1690d79 to dc57d1a Compare September 21, 2026 14:13
@zekelinAlex
zekelinAlex force-pushed the users/alexander.zekelin/placement-index-guard branch from acf62a8 to 03b9005 Compare September 21, 2026 14:13
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.

1 participant