Skip to content

fix: keep repeated extended query params as arrays beyond 20 values#7151

Open
wwenrr wants to merge 1 commit intoexpressjs:masterfrom
wwenrr:fix-7147-query-array-limit
Open

fix: keep repeated extended query params as arrays beyond 20 values#7151
wwenrr wants to merge 1 commit intoexpressjs:masterfrom
wwenrr:fix-7147-query-array-limit

Conversation

@wwenrr
Copy link
Copy Markdown

@wwenrr wwenrr commented Apr 1, 2026

Summary

  • fix extended query parser behavior for repeated keys with >20 values
  • set arrayLimit: 1000 in parseExtendedQueryString so repeated key form (a=1&a=2...) keeps returning arrays
  • add regression test for 21 repeated tenancyIds values

Why

Issue #7147 reports that in 4.22.x repeated query keys switch from array to object once count exceeds 20, which is a behavior break for existing apps.

Testing

  • ran test suite in Docker (node:22)
  • validated req.query extended parser test including new regression case

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