Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id D63A5634DBA for ; Tue, 20 Apr 2010 21:13:26 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 44302-01-3 for ; Wed, 21 Apr 2010 00:13:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yw0-f204.google.com (mail-yw0-f204.google.com [209.85.211.204]) by mail.postgresql.org (Postfix) with ESMTP id C9353634186 for ; Tue, 20 Apr 2010 21:11:52 -0300 (ADT) Received: by ywh42 with SMTP id 42so3330713ywh.15 for ; Tue, 20 Apr 2010 17:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=dvB3hzfr6Cq2HCe1EUGOaLMzHoJBda7ObRkJ5GPm5tY=; b=ARCXrhSirzpFlhPsZ/D0h31/BINx/bscQV5XXw+Ro5XH/NChkcsDi7On1GYKFh4nfN io/V5jtUvyl3ZaR2EBH2TTclDQ7ONuVbS7fgN/LnJ3FL45zjFHcYvPs9UBhjpFEfoYXN R5RuR3iyJu6BlugmE8+yVjjsObrA1xadjJeW4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=SkBWcKT8uhMCbupNLpNgnKRy95/vzSbtrF+OdH1uuyz3hD5BBs6F8QDFTAlWoJGL0a B8PfSSGVe8Hvt2zusgRFxZNp4QoET+m/ngKK+VHx5tcpvGx/ksaHa/wON11354/i1ZT5 CWCOI2FR4DL88SKYeAsaD42fkXGOref42pnag= MIME-Version: 1.0 Received: by 10.231.199.203 with HTTP; Tue, 20 Apr 2010 17:11:50 -0700 (PDT) Date: Tue, 20 Apr 2010 17:11:50 -0700 Received: by 10.101.173.25 with SMTP id a25mr19720258anp.17.1271808711239; Tue, 20 Apr 2010 17:11:51 -0700 (PDT) Message-ID: Subject: Authentication failed when Password contains Japaneese Charecters From: Shivender Devarakonda To: pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=00504502a2ba7565cd0484b40a0b X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201004/40 X-Sequence-Number: 20451 --00504502a2ba7565cd0484b40a0b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, I am using Postgres SQL version 8.3 server and I have a client that uses Postgres SQL JDBC driver. I have a user "admin" with the password having japaneese charecters =E5=BD=A2=E5=BC=8F. Step -1 I used psql client to connect to the Database and it was successful and I am able to see the tables. Ste-2 Our application uses the JDBC driver to connect to the Database. I se= e that the password is correctly passed to the class: org.postgresql.core.v3.ConnectionFactoryImpl method:doAuthentication The first statement there String password =3D info.getProperty("password"); returning the "japaneese charecters that I passed. after that control is going to * case* *AUTH_REQ_PASSWORD*: block after it flushes the password I see that exception is coming. I see the following log statement in the postgres logs: [64276-[unknown]-[unknown]-2010-04-20 17:07:56.157 PDT]LOG: connection received: host=3D138.42.220.183 port=3D2634 [64276-cemdb-admin-2010-04-20 17:07:56.157 PDT]FATAL: password authentication failed for user "admin" we use the following JDBC Driver: postgresql-8.4-701.jdbc4.jar I am not sure why we do not see any problem with psql but we see the proble= m with JDBC drivers. Please assist me on this. Thanks, Shivender --00504502a2ba7565cd0484b40a0b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,
I am using Postgres SQL version 8.3 server and I have a client that us= es Postgres SQL=C2=A0JDBC driver. I have a user "admin" with the = password having japaneese charecters =E5=BD=A2=E5=BC=8F.
=C2=A0
Step -1 I used psql client to connect to the Database and it was succe= ssful and I am able to see the tables.
=C2=A0
Ste-2 Our application uses the JDBC driver to connect to the Database.= I see that the password is correctly passed to the

=C2=A0

class: org.postgresql.core.v3.ConnectionFactoryImpl

method:doAuthentication

The first statement there

=C2=A0

String password =3D info.getProperty(

"password");
returning the "japaneese charecters that I passed.
=C2=A0
after that control is going to <= font color=3D"#7f0055" size=3D"2">

case

AUTH_REQ_PASSWORD: block after it flushes the password I see th= at exception is coming.

=C2=A0I see the following log statement in the postgres= logs:

[64276-[unknown]-[unknown]-2010-04-20 17:07:56.157 PDT]= LOG:=C2=A0 connection received: host=3D138.42.220.183 port=3D2634
[64276= -cemdb-admin-2010-04-20 17:07:56.157 PDT]FATAL:=C2=A0 password authenticati= on failed for user "admin"

we use the following JDBC Driver: postgresql-8.4-701.jd= bc4.jar

=C2=A0

I am not sure why we do not see any problem with psql b= ut we see the problem with JDBC drivers.

=C2=A0

Please assist me on this.

=C2=A0

Thanks,

Shivender

--00504502a2ba7565cd0484b40a0b--