Repository navigation
Commit 67ef5ab
authored
## What's Changed
`ArrowFlightConnectionProperty.getBoolean` only treated `1` and the
exact lowercase `true` as true, and connection-string values are not
normalized, so `useEncryption=TRUE` (or `True`) parsed as false. Since
`useEncryption` defaults to true and drives `withEncryption`, that
silently downgraded the connection to plaintext and sent the auth
handshake and credentials in the clear. This compares `true`
case-insensitively while still honoring `1`, matching how JDBC drivers
normally parse boolean options.
Closes #1357.
1 parent 301dc90 commit 67ef5ab
2 files changed
Lines changed: 18 additions & 1 deletion
File tree
- flight/flight-sql-jdbc-core/src
- main/java/org/apache/arrow/driver/jdbc/utils
- test/java/org/apache/arrow/driver/jdbc/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
74 | 91 | | |
75 | 92 | | |
76 | 93 | | |
| |||
0 commit comments