Skip to content

WW-3226 test: pin which value wins for each alias/params ordering - #1918

Merged
lukaszlenart merged 1 commit into
mainfrom
WW-3226-alias-params-ordering-test
Sep 12, 2026
Merged

WW-3226 test: pin which value wins for each alias/params ordering#1918
lukaszlenart merged 1 commit into
mainfrom
WW-3226-alias-params-ordering-test

Conversation

@lukaszlenart

Copy link
Copy Markdown
Member

Relates to WW-3226.

WW-3226 asked for an overwrite flag on AliasInterceptor. Triage showed the behaviour is already decided by interceptor ordering: alias and params both set the target property when they run, so whichever runs last wins. struts-site#329 documents that; this PR pins it with two tests so the documented promise is enforced:

  • alias before params (the defaultStack order) — the directly submitted parameter wins.
  • params before alias — the alias overrides the submitted parameter.

Both tests also assert the source property bound, so a run where params binds nothing fails instead of passing vacuously. Test-only; no production change. The ticket itself is being closed as Won't Fix.

Security review: clean — test-only diff, no shipped code touched.

🤖 Generated with Claude Code

The docs now promise that a directly submitted parameter wins when alias
runs before params, and that the alias overrides it when alias runs after
params. Cover both orderings so the promise is enforced.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@lukaszlenart
lukaszlenart force-pushed the WW-3226-alias-params-ordering-test branch from 04cd361 to c8cbdc1 Compare September 12, 2026 07:52
@sonarqubecloud

Copy link
Copy Markdown

@lukaszlenart
lukaszlenart marked this pull request as ready for review September 12, 2026 08:12
@lukaszlenart
lukaszlenart merged commit 402a28d into main Sep 12, 2026
13 checks passed
@lukaszlenart
lukaszlenart deleted the WW-3226-alias-params-ordering-test branch September 12, 2026 08:12
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