Commit 7409993
committed
Reject non-SSLContext ssl_context value at point of use in createHttpClient
Per @chernser review: when the 'ssl_context' configuration value is present but
not a javax.net.ssl.SSLContext instance, HttpAPIClientHelper.createHttpClient now
throws ClientMisconfigurationException instead of silently falling back to building
a context from trust/key material. A null value still builds from material and a
real SSLContext is still used as-is.
Implements: #29091 parent a1f8b04 commit 7409993
2 files changed
Lines changed: 26 additions & 3 deletions
File tree
- client-v2/src
- main/java/com/clickhouse/client/api/internal
- test/java/com/clickhouse/client/api
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
289 | | - | |
290 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
291 | 297 | | |
292 | 298 | | |
293 | 299 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
201 | 218 | | |
202 | 219 | | |
203 | 220 | | |
| |||
0 commit comments