Repository navigation
Commit acf842e
committed
[fix](jdbc) Scope driver_url grammar to create/alter, leave historical catalogs untouched
The strict bare-name grammar was enforced inside the shared resolver
getFullDriverUrl(), which is also on the lazy load path of pre-existing
catalogs (Iceberg/Paimon/legacy JDBC consumers call it directly, with no
create/alter or replay context). An unmodified historical catalog using a
previously valid driver file name (e.g. one containing '+') could therefore
fail on first access after upgrade.
Move the mandatory grammar to the create/alter path only
(JdbcDorisConnector.checkDriverUrlSecurityRule, run by checkProperties on
CREATE and ALTER, both !isReplay). getFullDriverUrl now applies no new
restriction, so historical catalogs resolve exactly as before while new or
altered catalogs are still validated.1 parent a341e48 commit acf842e
2 files changed
Lines changed: 19 additions & 19 deletions
File tree
- fe/fe-core/src
- main/java/org/apache/doris/catalog
- test/java/org/apache/doris/catalog
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
301 | 300 | | |
302 | 301 | | |
303 | 302 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | 303 | | |
309 | 304 | | |
310 | 305 | | |
| |||
325 | 320 | | |
326 | 321 | | |
327 | 322 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
337 | 329 | | |
338 | 330 | | |
339 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
369 | 377 | | |
370 | 378 | | |
371 | 379 | | |
| |||
0 commit comments