pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sehrope Sarkuni <noreply@github.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: [pgjdbc/pgjdbc] 624ac5: fix: Provide useful error message for empty or mis...
Date: Tue, 12 Oct 2021 02:58:31 -0700
Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/b65726-624ac5@github.com> (raw)

  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 624ac544312f2e3883036475e45e16e689d795cc
      https://github.com/pgjdbc/pgjdbc/commit/624ac544312f2e3883036475e45e16e689d795cc
  Author: Sehrope Sarkuni <sehrope@jackdb.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.







Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/b65726-624ac5@github.com>
Permalink:  ../pgjdbc%2Fpgjdbc%2Fpush%2Frefs%2Fheads%2Fmaster%2Fb65726-624ac5@github.com/
Also on:    postgresql.org/message-id/pgjdbc/pgjdbc/push/refs/heads/master/b65726-624ac5@github.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: noreply@github.com
  Subject: Re: [pgjdbc/pgjdbc] 624ac5: fix: Provide useful error message for empty or mis...
  In-Reply-To: <pgjdbc/pgjdbc/push/refs/heads/master/b65726-624ac5@github.com>
  References: <pgjdbc/pgjdbc/push/refs/heads/master/b65726-624ac5@github.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox