[pgjdbc/pgjdbc] 624ac5: fix: Provide useful error message for empty or mis...

From: Sehrope Sarkuni <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] 624ac5: fix: Provide useful error message for empty or mis...
Date: 2021-10-12 09:58:31
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/b65726-624ac5@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 624ac544312f2e3883036475e45e16e689d795cc
https://github.com/pgjdbc/pgjdbc/commit/624ac544312f2e3883036475e45e16e689d795cc
Author: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
Date: 2021-10-12 (Tue, 12 Oct 2021)

Changed paths:
M pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java
M pgjdbc/src/test/java/org/postgresql/jdbc/ScramTest.java

Log Message:
-----------
fix: Provide useful error message for empty or missing passwords for SCRAM auth

Previously the driver would throw an internal error if the server requested SCRAM authentication
and no or an empty password was specified. Fixes things so that the driver provides a helpful
error message to the user that a non-empty password is required.

Also adds tests to verify the behavior and expected error messages.

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2021-10-12 12:46:03 [pgjdbc/pgjdbc] 19011a: Update nightlysnapshot.yml
Previous Message Dave Cramer 2021-10-11 13:52:24 [pgjdbc/pgjdbc] b65726: fix: remove unused tests (#2295)