Repository navigation
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
5465ffc to
53c7c2a
Compare
✅ Playwright Results — workflow succeededValidated commit ✅ 1027 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 51m 10s ⏱️ Max setup 3m 9s · max shard execution 17m 11s · max shard-job elapsed before upload 21m 17s · reporting 6s 🌐 198.54 requests/attempt · 2.21 app boots/UI scenario · 22.89% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
CVE-2026-64607 — classic HttpClient leaks the underlying connection back to the manager when the response Content-Encoding is invalid/unsupported. Affects httpclient5 <= 5.6.2, fixed in 5.6.3. Currently unmanaged: calcite-core -> avatica -> httpclient5 resolves to 5.5, and elasticsearch-java / opensearch-java shade 5.4.4 / 5.5. Pin at 5.6.3 in root <dependencyManagement>. httpclient5 5.6.0 turned on automatic gzip decompression in the async client pipeline by default. Both opensearch-java's ApacheHttpClient5Transport and elasticsearch-java's Rest5Client also decompress the response body themselves, so leaving both layers enabled runs the second decompress pass on already-inflated bytes and throws "java.util.zip.ZipException: Not in GZIP format" out of LazyDecompressingInputStream (reproduced locally in UpdateChildrenAsyncPropagationTest.updateChildrenSubmitsAsyncTaskAndPropagates). Call HttpAsyncClientBuilder.disableContentCompression() in the transport config callbacks (OpenSearchClient + ElasticSearchClient) so the high- level clients own decompression as before. Verified locally with the pin and the disableContentCompression() calls: - mvn dependency:tree on openmetadata-service: httpclient5 5.6.3 - Shaded elasticsearch-deps / opensearch-deps uber-jars embed 5.6.3 - All 146 openmetadata-service search.opensearch.* unit tests pass (was 1 error before the disableContentCompression() fix)
53c7c2a to
1159884
Compare
… clients Completes the CVE-2026-64607 fix. The two production clients were patched, but the integration-test httpclient5 clients still double-decompressed responses: httpclient5 5.6.0 enables automatic gzip decompression by default and the ES/OS java clients also decompress, so the second pass ran over already-inflated bytes and threw 'ZipException: Not in GZIP format' across the search integration tests. Add disableContentCompression() to the three test-side builders, mirroring the production ElasticSearchClient/OpenSearchClient fix: - TestSuiteBootstrap.createSearchClient (shared ES Rest5Client) - VectorEmbeddingIntegrationIT (inline OpenSearch transport) - SearchConsumerFieldBehaviorIT (inline OpenSearch transport)
🚦 Removed from the merge queue —
|
…ion test clients The integration tests build their own OpenSearch/Elasticsearch clients, so they need the same disableContentCompression() call as the production search clients once httpclient5 moves to the 5.6 line. Without it they fail with "java.util.zip.ZipException: Not in GZIP format". Taken from #31525 by yan-3005. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Code Review ✅ ApprovedPins httpclient5 to version 5.6.3 in the root pom to mitigate CVE-2026-64607 and prevent connection pool exhaustion. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
…ntent compression (#31667) * fix(search): move httpclient5 to 5.6.3 and disable transport-level content compression Follow-up to #31657, which pinned httpclient5 to 5.5.2 so it stopped being mismatched against the httpcore5 5.4 line. 5.5.2 was the minimal fix but it still sits inside the CVE-2026-64607 range (affects 5.0-alpha1 through 5.6.2: the classic i/o client leaks a connection when a response carries an invalid Content-Encoding, exhausting the pool). 5.6.3 clears that CVE and is a better pairing besides: httpclient5-parent 5.6.3 declares httpcore5 5.4.3, exactly the version pinned here, whereas 5.5.2 targets 5.3.6. Client and core now come from the same line Apache releases together. Moving to the 5.6 line requires one code change. httpclient5 5.6.0 turned on automatic content decompression in the async client pipeline by default, and both search transports already decompress the response body themselves. Leaving both enabled runs the second pass over already-inflated bytes and throws "java.util.zip.ZipException: Not in GZIP format". Disable it at the transport layer in OpenSearchClient and ElasticSearchClient and let the search clients own decompression. The connection-request timeout bound from #31657 is unchanged. Note for future bumps: the shaded uber-jars in openmetadata-shaded-deps bundle org.apache.hc.* unrelocated, so they carry their own copy of httpclient5 and httpcore5 and precede the standalone jars on the classpath. They inherit this dependencyManagement block, so a clean build keeps both copies aligned - but the pin only takes effect once those modules are rebuilt. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(search): disable transport-level content compression in integration test clients The integration tests build their own OpenSearch/Elasticsearch clients, so they need the same disableContentCompression() call as the production search clients once httpclient5 moves to the 5.6 line. Without it they fail with "java.util.zip.ZipException: Not in GZIP format". Taken from #31525 by yan-3005. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
…ntent compression (#31667) * fix(search): move httpclient5 to 5.6.3 and disable transport-level content compression Follow-up to #31657, which pinned httpclient5 to 5.5.2 so it stopped being mismatched against the httpcore5 5.4 line. 5.5.2 was the minimal fix but it still sits inside the CVE-2026-64607 range (affects 5.0-alpha1 through 5.6.2: the classic i/o client leaks a connection when a response carries an invalid Content-Encoding, exhausting the pool). 5.6.3 clears that CVE and is a better pairing besides: httpclient5-parent 5.6.3 declares httpcore5 5.4.3, exactly the version pinned here, whereas 5.5.2 targets 5.3.6. Client and core now come from the same line Apache releases together. Moving to the 5.6 line requires one code change. httpclient5 5.6.0 turned on automatic content decompression in the async client pipeline by default, and both search transports already decompress the response body themselves. Leaving both enabled runs the second pass over already-inflated bytes and throws "java.util.zip.ZipException: Not in GZIP format". Disable it at the transport layer in OpenSearchClient and ElasticSearchClient and let the search clients own decompression. The connection-request timeout bound from #31657 is unchanged. Note for future bumps: the shaded uber-jars in openmetadata-shaded-deps bundle org.apache.hc.* unrelocated, so they carry their own copy of httpclient5 and httpcore5 and precede the standalone jars on the classpath. They inherit this dependencyManagement block, so a clean build keeps both copies aligned - but the pin only takes effect once those modules are rebuilt. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(search): disable transport-level content compression in integration test clients The integration tests build their own OpenSearch/Elasticsearch clients, so they need the same disableContentCompression() call as the production search clients once httpclient5 moves to the 5.6 line. Without it they fail with "java.util.zip.ZipException: Not in GZIP format". Taken from #31525 by yan-3005. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
…ntent compression (#31667) * fix(search): move httpclient5 to 5.6.3 and disable transport-level content compression Follow-up to #31657, which pinned httpclient5 to 5.5.2 so it stopped being mismatched against the httpcore5 5.4 line. 5.5.2 was the minimal fix but it still sits inside the CVE-2026-64607 range (affects 5.0-alpha1 through 5.6.2: the classic i/o client leaks a connection when a response carries an invalid Content-Encoding, exhausting the pool). 5.6.3 clears that CVE and is a better pairing besides: httpclient5-parent 5.6.3 declares httpcore5 5.4.3, exactly the version pinned here, whereas 5.5.2 targets 5.3.6. Client and core now come from the same line Apache releases together. Moving to the 5.6 line requires one code change. httpclient5 5.6.0 turned on automatic content decompression in the async client pipeline by default, and both search transports already decompress the response body themselves. Leaving both enabled runs the second pass over already-inflated bytes and throws "java.util.zip.ZipException: Not in GZIP format". Disable it at the transport layer in OpenSearchClient and ElasticSearchClient and let the search clients own decompression. The connection-request timeout bound from #31657 is unchanged. Note for future bumps: the shaded uber-jars in openmetadata-shaded-deps bundle org.apache.hc.* unrelocated, so they carry their own copy of httpclient5 and httpcore5 and precede the standalone jars on the classpath. They inherit this dependencyManagement block, so a clean build keeps both copies aligned - but the pin only takes effect once those modules are rebuilt. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(search): disable transport-level content compression in integration test clients The integration tests build their own OpenSearch/Elasticsearch clients, so they need the same disableContentCompression() call as the production search clients once httpclient5 moves to the 5.6 line. Without it they fail with "java.util.zip.ZipException: Not in GZIP format". Taken from #31525 by yan-3005. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Advisory
CVE-2026-64607 — HttpClient (classic i/o) fails to release the underlying connection back to the connection manager when the response
Content-Encodingheader is invalid or unsupported, leading to a connection leak / pool exhaustion. Async i/o HttpClient is not affected.org.apache.httpcomponents.client5:httpclient5 <= 5.6.2>= 5.6.3Root cause
httpclient5is currently unmanaged in the root<dependencyManagement>. Actual versions in the build tree (verified viamvn dependency:tree):elasticsearch-deps(shaded): httpclient5 5.4.4 (viaelasticsearch-java 9.2.4)opensearch-deps(shaded): httpclient5 5.5 (viaopensearch-java 3.4.0)openmetadata-service(transitive): httpclient5 5.5 (viacalcite-core → avatica-core)All three lines are vulnerable.
Fix
Add a single pin at
httpclient5 = 5.6.3next to the existinghttpcore5/httpcore5-h2block in the root pom. This mirrors the pattern used for the recenthttpcore5/httpcore5-h2pins (PRs #31442, #31513).Verification (local
mvn dependency:treewith pin applied)Shaded uber-jars produced by the reactor build embed
version=5.6.3inMETA-INF/maven/org.apache.httpcomponents.client5/httpclient5/pom.properties. Fullmvn clean install -DskipTestson:openmetadata-serviceand reactor succeeds.Backport
Add label
To releaseso this cherry-picks to2.0. A separate manual backport PR will cover1.13.Test plan
mainhttpclient5-5.6.3.jarGreptile Summary
The PR pins Apache HttpClient 5 at 5.6.3 to address CVE-2026-64607 and adjusts search-client compression ownership for compatibility with the upgraded client.
httpclient55.6.3 alongside the matching HttpCore 5.4.3 dependencies.Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart LR POM[Root dependency management] --> HC[httpclient5 5.6.3] HC --> ES[Elasticsearch transport] HC --> OS[OpenSearch transport] ES --> ESD[Rest5Client decompression] OS --> OSD[ApacheHttpClient5Transport decompression] HC -. built-in decompression disabled .-> ESD HC -. built-in decompression disabled .-> OSDReviews (2): Last reviewed commit: "Merge branch 'main' into fix/security-ht..." | Re-trigger Greptile