pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Magnus Hagander <magnus@hagander.net>
Cc: Christian Kastner <debian@kvr.at>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Possible regression: libpq + SSL aborts when user has no home directory
Date: Fri, 04 Mar 2011 09:55:35 -0500
Message-ID: <27204.1299250535@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTinepkY1H_=EG7Lj4bkQjdVOmi+-8m+ZyUKNnNhF@mail.gmail.com>
References: <4D6FF05E.1050201@kvr.at>
	<8295.1299189555@sss.pgh.pa.us>
	<10824.1299196694@sss.pgh.pa.us>
	<AANLkTinepkY1H_=EG7Lj4bkQjdVOmi+-8m+ZyUKNnNhF@mail.gmail.com>

Magnus Hagander <magnus@hagander.net> writes:
> On Fri, Mar 4, 2011 at 00:58, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> One small problem is that if the sslmode is "verify-ca" or
>>> "verify-full", failure to find the root cert file is an error,
>>> and that error message normally includes the pathname at which
>>> the cert file was sought.  What shall we print if we couldn't
>>> identify the home directory?

> Is there any case when it would actually be realistic that we don't
> find the home directory, but the user can't figure out that's why it
> couldn't find the file? If so, the "could not get home directory" adds
> some more information... We can't exactly expect the end user to know
> that this is the only codepath that can lead to the error message...

Yeah, after sleeping on it I think that it'd be better to have a
specialized error message for this case.  It's not significantly
more code, but it would represent another translatable string,
and I had first thought that dodging that would be good.  But it's
a sufficiently odd case that making the error message as explicit
as possible is probably the best thing.  Will change and commit.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <27204.1299250535@sss.pgh.pa.us>
Permalink:  ../27204.1299250535@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27204.1299250535@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, magnus@hagander.net, debian@kvr.at
  Subject: Re: Possible regression: libpq + SSL aborts when user has no home directory
  In-Reply-To: <27204.1299250535@sss.pgh.pa.us>
  References: <4D6FF05E.1050201@kvr.at> <8295.1299189555@sss.pgh.pa.us> <10824.1299196694@sss.pgh.pa.us> <AANLkTinepkY1H_=EG7Lj4bkQjdVOmi+-8m+ZyUKNnNhF@mail.gmail.com> <27204.1299250535@sss.pgh.pa.us>

* 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