Skip to content

[BUGFIX] Skip cHash validation for API query arguments - #162

Merged
kszymukowicz merged 1 commit into
release/5.0.0from
chash
Oct 3, 2026
Merged

kszymukowicz merged 1 commit into
release/5.0.0from
chash

Conversation

@kszymukowicz

Copy link
Copy Markdown
Collaborator

With cacheHash.enforceValidation enabled, any API request with query arguments (filters, pagination, ordering) returned 404 "cHash empty".

T3apiPageArgumentsValidationBypass passes API requests to core's PageArgumentValidator without query arguments. T3apiPageArgumentsRestorer restores the original routing afterwards. Normal pages keep full cHash validation.

With cacheHash.enforceValidation enabled, any API request with query arguments (filters, pagination, ordering) returned 404 "cHash empty".

T3apiPageArgumentsValidationBypass passes API requests to core's PageArgumentValidator without query arguments. T3apiPageArgumentsRestorer restores the original routing afterwards. Normal pages keep full cHash validation.
@kszymukowicz kszymukowicz self-assigned this Oct 3, 2026
@kszymukowicz kszymukowicz added the bug Something isn't working label Oct 3, 2026
@kszymukowicz
kszymukowicz merged commit 6ad426e into release/5.0.0 Oct 3, 2026
25 checks passed
@kszymukowicz
kszymukowicz deleted the chash branch October 3, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant