RE: [JDBC] Bug found in the driver

2001-08-08 Thread Dave Cramer

Denis,

Do you get this error with current binaries from 

http://jdbc.fastcrypt.com

Regards,

Dave

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Denis Bucher
Sent: August 8, 2001 7:44 AM
To: Steve Wampler
Cc: PGSQL-JDBC
Subject: Re: [JDBC] Bug found in the driver


At 11:07 07.08.01 -0700, you wrote:

Hello !

  I agree with you. But is there someone that could find the exact 
  place to correct it ? This would be nice... And it would spare some 
  time in the mailling-lists, just do a google.com search at unusual

  and you'll see
 ;-))

I thought I'd take more of a look at this (because I don't want to do 
the work I'm supposed to be doing!).  It looks for all the world to me 
that the code is correct and that somehow MessageFormat.format() isn't 
working properly.  This is, of course, unlikely, since I'm pretty sure 
Sun has tested MessageFormat quite a bit!

Do you have a simple test case I can run that will show the problem? 
There's not much I can do without being able to reproduce the problem.

It is very easy to reproduce the bug !

Just change you pg_hba.conf so that the host on which you are has got no
entry. And you'll see :

Instead of saying unusual error, please record the following exception
: No pg_hba.conf entry for host 192.168.200.4, user postgres database
test (or something like that) it will say only :

unusual error, please record the following exception : {0}

Denis



---(end of broadcast)---
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html



---(end of broadcast)---
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html



RE: [JDBC] Bug found in the driver

2001-08-08 Thread Dave Cramer

Denis,

Can you do me a favour, and post a small program which can reproduce
your results.
If you have already done so, let me know and I will go and find it.

Dave

-Original Message-
From: Denis Bucher [mailto:[EMAIL PROTECTED]] 
Sent: August 8, 2001 9:56 AM
To: PGSQL-JDBC
Cc: [EMAIL PROTECTED]
Subject: RE: [JDBC] Bug found in the driver


At 09:05 08.08.01 -0400, you wrote:
Denis,

Do you get this error with current binaries from 
http://jdbc.fastcrypt.com

Yes, with the latest binaries I get approximately :

EXCEPTION Quelque chose de peu commun sest produit pour faire ??chouer
le gestionnaire. Veuillez enregistrer cette exception: {0}

You can find it into : org/postgres/errors_fr.properties

With my modified/kludge version I get :

... java.sql.SQLException: Password authentification failed for user
'test'

Denis

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of Denis Bucher
Sent: August 8, 2001 7:44 AM
To: Steve Wampler
Cc: PGSQL-JDBC
Subject: Re: [JDBC] Bug found in the driver


At 11:07 07.08.01 -0700, you wrote:

Hello !

   I agree with you. But is there someone that could find the exact 
   place to correct it ? This would be nice... And it would spare 
   some time in the mailling-lists, just do a google.com search at 
   unusual

   and you'll see
  ;-))
 
 I thought I'd take more of a look at this (because I don't want to do

 the work I'm supposed to be doing!).  It looks for all the world to 
 me that the code is correct and that somehow MessageFormat.format() 
 isn't working properly.  This is, of course, unlikely, since I'm 
 pretty sure Sun has tested MessageFormat quite a bit!
 
 Do you have a simple test case I can run that will show the problem? 
 There's not much I can do without being able to reproduce the 
 problem.

It is very easy to reproduce the bug !

Just change you pg_hba.conf so that the host on which you are has got 
no entry. And you'll see :

Instead of saying unusual error, please record the following exception
: No pg_hba.conf entry for host 192.168.200.4, user postgres database 
test (or something like that) it will say only :

unusual error, please record the following exception : {0}

Denis



---(end of 
broadcast)---
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html



---(end of 
broadcast)---
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html



---(end of broadcast)---
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html