Re: Connection bug (was: Re: pgAdmin beta fixes)

Поиск
Список
Период
Сортировка
Искать

Re: Connection bug (was: Re: pgAdmin beta fixes)

От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:
 

> -----Original Message-----
> From: Erwin Brandstetter [mailto:brandstetter@falter.at] 
> Sent: 23 October 2006 21:08
> To: pgadmin-support@postgresql.org
> Cc: Dave Page
> Subject: Connection bug (was: Re: pgAdmin beta fixes)
> 
> Steps to reproduce the crash:
> Settings: ->screenshot "settings.png"
> Check "Store password". Log in, providing password. (Remember, we 
> wouldn't need one, as we log in as system user postgres, who is on 
> "ident sameuser"). Disconnect.

OK, I should warn you that connecting like this is completely untested
and not something we've ever said we'll support. But I'll do what I
can... :-)

> Connect again. Password is being remembered, login is auto. 
> Disconnect 
> again.
> Uncheck "Store password". Connect again. Do not supply password.
> 
>     An error has occurred:
>  fe_sendauth: no password supplied
> 
> This message comes 3 times. (Maybe because there are 3 
> databases visible?)
> Focus is on the first database. (->screenshot 
> "before_crash.png") When I 
> hit  now, pgAdmin crashes.
> 
> Note: If you just try to connect without password without 
> these steps, 
> pgAdmin does not crash, you are not connected at all. And the error 
> message was slightly different (!!):
> 
>     An error has occurred:
> Error connecting to the server: fe_sendauth: no password supplied

I've made a couple of changes to fix the password related issues that
George reported. I have a hunch that the second fix might resolve your
problem. I'll mail across an update in a minute for testing if you
wouldn't mind.

Regards, Dave.

Re: Connection bug

От:
Erwin Brandstetter <brandstetter@falter.at>
Дата:
dpage@vale-housing.co.uk wrote:
> OK, I should warn you that connecting like this is completely untested
> and not something we've ever said we'll support. But I'll do what I
> can... :-)
>   

You might consider this method of connecting tested now - I tested it a 
lot over the last few years. :)
It works just fine, except for the reported problem. But I can connect 
otherwise.
The upside of this method is that I can connect without password (or 
saving passwords anywhere on the disc) and still have the security of an 
RSA-key for SSH (using puTTY and pageant for this).


>> Connect again. Password is being remembered, login is auto. 
>> Disconnect 
>> again.
>> Uncheck "Store password". Connect again. Do not supply password.
>>
>>     An error has occurred:
>>  fe_sendauth: no password supplied
>>
>> This message comes 3 times. (Maybe because there are 3 
>> databases visible?)
>> Focus is on the first database. (->screenshot 
>> "before_crash.png") When I 
>> hit  now, pgAdmin crashes.
>>
>> Note: If you just try to connect without password without 
>> these steps, 
>> pgAdmin does not crash, you are not connected at all. And the error 
>> message was slightly different (!!):
>>
>>     An error has occurred:
>> Error connecting to the server: fe_sendauth: no password supplied
>>     
>
> I've made a couple of changes to fix the password related issues that
> George reported. I have a hunch that the second fix might resolve your
> problem. I'll mail across an update in a minute for testing if you
> wouldn't mind.
>   

Sorry, crash is still reproducible. On a second thought: what actually 
crashes pgAdmin is the refresh.
My special way of connecting only creates a situation, where refresh can 
do its evil deed.
The other involved issue is, that pgAdmin requires a password, even 
where it is not required. I can live with that (especially as I 
understand what's going on an how to avoid it). Less prepared users 
might be less happy.


Regards
Erwin

Re: Connection bug

От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:
 

> -----Original Message-----
> From: Erwin Brandstetter [mailto:brandstetter@falter.at] 
> Sent: 23 October 2006 23:36
> To: pgadmin-support@postgresql.org
> Cc: Dave Page
> Subject: Re: Connection bug
> 
> >>     An error has occurred:
> >> Error connecting to the server: fe_sendauth: no password supplied

...

> 
> Sorry, crash is still reproducible. On a second thought: what 
> actually 
> crashes pgAdmin is the refresh.
> My special way of connecting only creates a situation, where 
> refresh can do its evil deed.
> The other involved issue is, that pgAdmin requires a password, even 
> where it is not required. I can live with that (especially as I 
> understand what's going on an how to avoid it).

That's the thing - that message comes direct from PostgreSQL, not
pgAdmin. I was able to reproduce it by connecting with auth set to
trust, then changing to md5 and attempting to open a new database. I was
at least able to stop the refresh crash that way.

> Less prepared users might be less happy.

Yeah, though in fairness you're the first in four or five years :-)

Regards, Dave.

FAQ