Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mY7ip-0006hL-RS for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Oct 2021 14:16:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mY7im-0006DC-NC for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Oct 2021 14:16:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mY7im-0006D4-GH for pgsql-bugs@lists.postgresql.org; Wed, 06 Oct 2021 14:16:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mY7ik-0006vu-EM for pgsql-bugs@lists.postgresql.org; Wed, 06 Oct 2021 14:16:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 196EGVNa4139745; Wed, 6 Oct 2021 10:16:31 -0400 From: Tom Lane To: cliffsizer@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17216: No Password Provided Error - uncaught exception In-reply-to: <17216-fa0d1504d9dd5b7c@postgresql.org> References: <17216-fa0d1504d9dd5b7c@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 06 Oct 2021 08:00:00 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4139743.1633529791.1@sss.pgh.pa.us> Date: Wed, 06 Oct 2021 10:16:31 -0400 Message-ID: <4139744.1633529791@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > Using connecting to the pg database 14.0 using jdbc (driver 42.2.24) How old is that JDBC driver? > and no > password (empty) is specified the following error message is returned > "Something unusual has occurred to cause the driver to fail. Please report > this exception." In previous versions (13.4) the password specific error > message is returned "The server requested password-based authentication, but > no password was provided" I suspect the server is asking for a SCRAM-encrypted password and the JDBC driver doesn't recognize that as a valid authentication request. If you don't want to update the driver, don't use SCRAM passwords. (Note that SCRAM password encryption is on by default in v14; see password_encryption setting.) regards, tom lane