Repository navigation
Commit 5123cfa
committed
[deps](mongodb) Upgrade native connector security dependencies
### Background
The native MongoDB connector prepares C client libraries for BE and a Java dependency bundle for FE. Compression providers are included in the FE archive.
### What problem does this PR solve?
Issue Number: None
Related PR: #70249
PR Type: Release/Dependency
Problem Summary:
The new dependency bundle pins MongoDB C Driver 2.5.7 and inherits snappy-java 1.1.10.5, which contain known upstream security defects. Upgrade the C driver and libbson together to 2.5.8, and pin snappy-java 1.1.10.10 within the MongoDB module.
### Details
- **Versions:** MongoDB C Driver/libbson 2.5.7 to 2.5.8; MongoDB module snappy-java 1.1.10.5 to 1.1.10.10.
- **Upstream changes:** Include cursor-response, compressed-reply, GridFS, allocation, buffer-boundary and stream-handling fixes.
- **Compatibility:** Preserve the existing native build options and module isolation; update the archive checksum and distribution version metadata together.
- **Rollback:** Revert these dependency pins and distribution metadata.
### Testing
- Build and install the native libraries with the third-party build script; link the BE CMake targets and run BSON/ObjectId, client lifecycle and snapshot-options smoke checks. Both native libraries report 2.5.8.
- Package the MongoDB FE module with Checkstyle and the connector import gate; inspect the six runtime jars and archive staging, and run BSON/read-options and Snappy/Zstd JNI round trips.
- Reproduce oversized allocation with snappy-java 1.1.10.5 and verify rejection using the packaged 1.1.10.10 jar, with a 64 MiB JVM heap.
- Verify the official C archive digest, configured checksum, upstream notices, managed-prefix rejection, shell syntax and diff whitespace.
- Full FE build and cross-platform coverage remain for CI.
### Release note
None
### Check List (For Author)
- Behavior changed: No query behavior change; update prepared dependency versions.
- Does this need documentation: No.
- Pre-submission status: Partially verified: scoped dependency builds and smoke checks pass; full Doris build and other platforms remain for CI.
### AI Disclosure
- Tool: OpenAI Codex.
- Generated: Dependency updates and this message.
- Human review: Pending maintainer review; agent self-review completed.1 parent 39bc832 commit 5123cfa
3 files changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1516 | 1516 | | |
1517 | 1517 | | |
1518 | 1518 | | |
1519 | | - | |
| 1519 | + | |
1520 | 1520 | | |
1521 | | - | |
| 1521 | + | |
1522 | 1522 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
| |||
0 commit comments