Open xiaowuyy opened 1 year ago
@xiaowuyy is it happens in the latest version
clickhouse-jdbc version is 0.3.2 ,I set password exclusion =? Fix this bug
@mzitnik
Hi @mzitnik
password contains +
and connection failing.
version: 0.6.4
@chernser can you take a look
After using the encoded password, the issue was fixed.
String encodedPassword = URLEncoder.encode(password, StandardCharsets.UTF_8.toString());
Describe the bug
password contains =?use clickhouse-jdbc connection failed.
Steps to reproduce
clickhouse server version 21.8.8.1
password AF.O4P=?m76.lHfa
error message: Code: 516, e.displayText() = DB::Exception: apmhouse: Auth##****he username or password#*#*****ion 21.8.8.1)[N], server ClickHouseNode(addr=http:ip:port, db=system)@-609109239
Expected behaviour
connection success
Code example
Error log
client: Code: 516, e.displayText() = DB::Exception: apmhouse: Auth##he username or password##ion 21.8.8.1)[N], server ClickHouseNode(addr=http:ip:port, db=system)@-609109239 server: 2023.04.03 15:46:54.681974 [ 456 ] {} DynamicQueryHandler: Request URI: /?extremes=0
2023.04.03 15:46:54.686019 [ 456 ] {} Access(user directories): apmhouse: Authentication failed: Code: 193, e.displayText() = DB::Exception: Invalid credentials, Stack trace (when copying this message, always include the lines below):
? @ 0x10273542 in /opt/apm-clickhouse/programs/clickhouse
? @ 0x519804f in /opt/apm-clickhouse/programs/clickhouse
? @ 0x4aad274 in /opt/apm-clickhouse/programs/clickhouse
? @ 0x4aaf101 in /opt/apm-clickhouse/programs/clickhouse
? @ 0xc6f5d6a in /opt/apm-clickhouse/programs/clickhouse
? @ 0xc71bb53 in /opt/apm-clickhouse/programs/clickhouse
? @ 0xc6f5d6a in /opt/apm-clickhouse/programs/clickhouse
? @ 0xca80ca7 in /opt/apm-clickhouse/programs/clickhouse
? @ 0xdc23d83 in /opt/apm-clickhouse/programs/clickhouse
? @ 0xdc24e01 in /opt/apm-clickhouse/programs/clickhouse
? @ 0xdc2ade9 in /opt/apm-clickhouse/programs/clickhouse
? @ 0xdc46a56 in /opt/apm-clickhouse/programs/clickhouse
? @ 0xe1e5bd9 in /opt/apm-clickhouse/programs/clickhouse
? @ 0xe1e64ee in /opt/apm-clickhouse/programs/clickhouse
? @ 0x102ede2e in /opt/apm-clickhouse/programs/clickhouse
? @ 0x102ea8f7 in /opt/apm-clickhouse/programs/clickhouse
? @ 0x8f3b in /usr/lib64/libpthread-2.28.so
clone @ 0xf8570 in /usr/lib64/libc-2.28.so (version 21.8.8.1)
Configuration
Environment
ClickHouse server
CREATE TABLE
statements for tables involved: