Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hWTL7-0007tQ-SF for pgsql-jdbc@arkaria.postgresql.org; Thu, 30 May 2019 22:16:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hWTL6-0005kU-Jz for pgsql-jdbc@arkaria.postgresql.org; Thu, 30 May 2019 22:16:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hWTL6-0005kL-A7 for pgsql-jdbc@lists.postgresql.org; Thu, 30 May 2019 22:16:00 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hWTL4-0003I2-4V for pgsql-jdbc@lists.postgresql.org; Thu, 30 May 2019 22:15:59 +0000 Received: by mail-pf1-x443.google.com with SMTP id q17so4825794pfq.8 for ; Thu, 30 May 2019 15:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=1Y0HS8QXtNV9yKNrmQT8MB2FdHLww9juVIKtplSm8bA=; b=DnRZHE3Bae2jLInMpxpTewSKklPY8oPjg88lyiRmVCeSwdpjdGtZhmzjs3jtuuNscj UZQoC3cJvBJ0q/QyELc6gAGR6L5DAKxdM2+ppsCzRuHpBR+iOAOM+joxagjUZhqDgCmD cnIRM38BVnqykfRNNAhBJ3a4nnprDEjFVVj+rnn2KuLhhp47y9FHRjw9/c47z2f30rjE 2vBryU5mVgP7+qrbN76CZCpNOTuJ1DrSvN35krvJ1EimWHvJztte2P9Y3G8k3Uvwd6im M7xlgb2QvfP+8zZwQzKJMDh5iasRY91ub0KN+Z+pYldBK3QGrP029+ycfELWTJdJ1uwI PX3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=1Y0HS8QXtNV9yKNrmQT8MB2FdHLww9juVIKtplSm8bA=; b=Y3zyVh/SuNcfQJ98SHD0CGQNSQp45F/2Rbg4xO47NTw1BHOLtREse9hiEedOXx8aV7 W+GvgPU3jfkCmbos/QHDYQvlHg48ivK7s0VNv4KmIECFsA0zlCxY5r5PYBUS4qL1vXM1 ttsx4bObfBOZNhf/P4LdNv+EjbNRaWkS4cfZG7eC3rdYYEUv/oPI5Fd0PayAnKaGEC2W iaTNe9SMgTgXgnV+QG9QKPOKIZFUvbbBo/N9khNFS/JFpdjuym4flP0jj2tlP5NuMWb4 /16LIt0YnWGg8fY2h9LEiApxkowFvIeoqlOjO16eeFnDl5yIuO5jeN6jFSkLFSMUf7fy ++0Q== X-Gm-Message-State: APjAAAWvNA/7R/Zmi8qLfw6oFtZw4bZUoOrRHzeo3HRSOMKS73Fzm2Kk YOAejBhr1K/NY5BCMyPvMQyCjnRT X-Google-Smtp-Source: APXvYqxp6GnuqPbHfv+ddpgvf/rdBHb7ZhoefvYimRj67rXVLlEV0cla6Q5nhdjObOmfFGxvYpIOvw== X-Received: by 2002:a63:1119:: with SMTP id g25mr5611374pgl.380.1559254555339; Thu, 30 May 2019 15:15:55 -0700 (PDT) Received: from [10.104.134.41] ([155.100.47.1]) by smtp.gmail.com with ESMTPSA id x13sm2240280pfa.154.2019.05.30.15.15.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 May 2019 15:15:54 -0700 (PDT) To: pgsql-jdbc@lists.postgresql.org From: Rob Sargent Subject: Overly specific error message? Message-ID: <4eaf5b40-ace4-18a1-ac3a-2ee72154e09d@gmail.com> Date: Thu, 30 May 2019 16:15:53 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------E8BABB4B50AB1EAFC6806DEC" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------E8BABB4B50AB1EAFC6806DEC Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Using PG 10.7 and JDBC org.postgresql:postgresql:42.1.4 I had only a single slash between postgresql: and the host jdbc:postgresql:/some.host.name:5432 I got org.postgresql.util.PSQLException: FATAL: password authentication failed for user "some-name" Naturally I tested and re-tested connecting manually as that user and with the supplied password.  Eventually of course I started looking around a little more thoroughly... I wonder if the message needs to be specifically about password authentication? --------------E8BABB4B50AB1EAFC6806DEC Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Using PG 10.7 and JDBC org.postgresql:postgresql:42.1.4

I had only a single slash between postgresql: and the host

jdbc:postgresql:/some.host.name:5432

I got

org.postgresql.util.PSQLException: FATAL: password authentication failed for user "some-name"

Naturally I tested and re-tested connecting manually as that user and with the supplied password.  Eventually of course I started looking around a little more thoroughly...

I wonder if the message needs to be specifically about password authentication?

--------------E8BABB4B50AB1EAFC6806DEC--