Skip to content

fix: Request pipeline - path decoding, field-in sources, bound triple-brace values - #224

Closed
jrosskopf wants to merge 10 commits into
mainfrom
fix/gh-192-220-request-pipeline
Closed

jrosskopf wants to merge 10 commits into
mainfrom
fix/gh-192-220-request-pipeline

Conversation

@jrosskopf

@jrosskopf jrosskopf commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • New real-binary tests (red commits first): test_path_param_decoding.py, test_field_in_sources.py, test_validator_hardening.py (TestTripleBraceValuesAreBound), test_cache_registry_g1.py (TestTimeTravelParametersStayLiterals)
  • Catch2: rewriter, route decoding, request handler; make test: 984 passed
  • Full integration suite (excluding load test): all passing
  • examples/ and docs templates reviewed for compatibility

Closes #220
Refs #192 #217


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

- Real-binary tests: %37 into an int validator, %20, %2F stays one segment,
  + stays a plus, bad escapes and %00 are 400, decoded once
- Path values cannot be overridden by query or body
- A body field is not satisfied by the query string, nor a query field by the body
)

- Unquoted, quoted and LIKE sites; typed literals and enum identifiers stay literal
…nce triple-brace binds) (#217)

- Guards the triple-brace forms inside AT(...) and the bare date/int binds that already work
- Route still matches the raw path, so %2F stays inside one segment
- Each captured value is decoded once before validation; + stays a plus
- Malformed escapes, %00 and invalid UTF-8 are 400
- A declared field is read only from its source (path, query, body, header)
- Route parameters are path-only and cannot be overridden by query or body
- Undeclared names keep the any-source behaviour so unknown-param checks still work
…er (#192)

- '{{{x}}}' and {{{x}}} become ?, '%{{{x}}}%' becomes ('%' || ? || '%')
- Stays raw inside sections, comments, enum identifiers, typed literals (DATE '...'),
  names after FROM/JOIN/BY, and identifier-glued tags
- An absent quoted value still binds '' as it used to render
- Tags in SQL comments are no longer turned into placeholders
- DuckLake resolves AT before parameters are bound, so a triple-brace value
  there (also inside quotes and CAST) is rendered, never turned into a ?
…192, #217)

- CONFIG_REFERENCE 4.2, 5.9 and 9.x, REQUEST_LIFECYCLE, security, query-execution, rest-endpoints guide
- CHANGELOG upgrade notes
@jrosskopf

Copy link
Copy Markdown
Contributor Author

Superseded by #230 (combined and merged).

@jrosskopf jrosskopf closed this Nov 21, 2026
@jrosskopf
jrosskopf deleted the fix/gh-192-220-request-pipeline branch November 21, 2026 03:27
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.

Path parameters are not percent-decoded

1 participant