Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 18E83538121 for ; Sat, 28 Jan 2012 14:53:09 -0400 (AST) Received: from oproxy3-pub.bluehost.com ([69.89.21.8]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1RrDOa-0002vS-Rf for pgsql-bugs@postgresql.org; Sat, 28 Jan 2012 18:53:09 +0000 Received: (qmail 26886 invoked by uid 0); 28 Jan 2012 18:52:52 -0000 Received: from unknown (HELO host159.hostmonster.com) (74.220.207.159) by oproxy3.bluehost.com with SMTP; 28 Jan 2012 18:52:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=timbira.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=3pnuIT7ZlnJj77iExXjAqS+6vhiYeHcSVk904Vv6+Qs=; b=YOS28veCnwj9+IQxYLN0aMsS+9JqIxODUXN2ix0GoaTZ1tp8gzXzJLVywouO2BS7RjTW7R+nrcKp5mijxCQN4dBAvC/UhXEja5TvKaUGab058vsKrbGykPoxlAOvb4cu; Received: from [189.10.73.221] (helo=[10.3.2.6]) by host159.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RrDOM-00070z-MG; Sat, 28 Jan 2012 11:52:51 -0700 Message-ID: <4F24437F.7080306@timbira.com> Date: Sat, 28 Jan 2012 15:50:39 -0300 From: Euler Taveira de Oliveira User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 To: Andy Grimm CC: PostgreSQL Bugs Subject: Re: BUG #6412: psql & fe-connect truncate passwords References: <4F242892.50403@timbira.com> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Identified-User: {1651:host159.hostmonster.com:timbirac:timbira.com} {sentby:smtp auth 189.10.73.221 authed with euler@timbira.com} X-Pg-Spam-Score: -1.1 (-) X-Archive-Number: 201201/216 X-Sequence-Number: 32283 On 28-01-2012 14:32, Andy Grimm wrote: > IMHO, there is a subtle difference here. If psql raised an error > message on passwords exceeding 100 characters, I would understand your > perspective, but I think that simply truncating the password and > continuing on is a bug. I also think that hard-coding the number > "100" in several places is simply poor practice which should be > corrected, and that if there's good reason for that to be the password > length limit, it should be uniformly enforced. > It is uniform on all of the bundled client tools. The source can always be improved; such a constant is one of those improvements. > The password is not of my choosing. It's an autogenerated sha hash of > an RSA key, and i've simply been the key to use. > While I agree that it's generally impractical to use such a long > password at the command line, more than 99% of the use of this > password is programmatic, and if I complain to the author that the > password is too long, he'll respond "it works for me with JDBC; you > are using broken tools. > So the "broken" part is the password file, right? I won't expect someone with such a long password typing or (of course) copy/paste it, will I? Again, patches are welcome. > I looked at the code before I wrote up the issue, and I have written > and tested a patch. I've posted it here: > > https://bugzilla.redhat.com/attachment.cgi?id=558061 > Please, post a patch here, we don't follow other bug trackers. > Perhaps I should just submit the patch to pgsql-hackers ? I'm new to > the pgsql bug interaction process, so my apologies if filing a bug was > not the appropriate way to present the issue. I get Internal Server > Error messages when I attempt to subscribe to any of the pgsql mailing > lists, so this makes communication with the lists difficult. > Bugs are tracked here but when it is not a bug but an improvement, we just redirect this thread to -hackers. -- Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento