Repository navigation
Apply http_max_field* limits to response headers in url - #132069
Conversation
`ReadWriteBufferFromHTTP` parsed the response header with the `Poco` defaults (8 KiB per field value), so `url` failed on sites with a long header, such as the 9.6 KB `Content-Security-Policy` of clickhouse.com.
|
Workflow [PR], commit [d0d600b] Summary: ✅
AI ReviewSummaryThe PR applies Final VerdictStatus: ✅ Approve |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units1884 translation units recompiled, 15696 s compile time in total, 1884 of them have a recent master baseline. Median compile-time ratio to the baselines is ×1.05 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
urland the other readers based onReadWriteBufferFromHTTPparsed the response header with thePocodefaults: 100 fields, 256-byte names, 8 KiB values. A site with a longer header failed withMalformed message: Field value too long/no CRLF found, for exampleclickhouse.comwith its 9.6 KBContent-Security-Policy. Now these readers use thehttp_max_fields,http_max_field_name_sizeandhttp_max_field_value_sizesettings, as the Azure client already does. The S3 client has its own limits (128 KiB by default).Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The
urltable function and theURLtable engine now accept HTTP response headers with fields longer than 8 KiB. The limits come from thehttp_max_fields,http_max_field_name_sizeandhttp_max_field_value_sizesettings.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/132069]
Version info
26.11.1.2560-master(included in26.11and later)