From: Eric Hill <Eric.Hill@jmp.com>
To: Inoue, Hiroshi <inoue@tpf.co.jp>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-odbc@postgresql.org>
Subject: Re: [BUGS] BUG #11608: ODBC driver crashes after wrong password entered
Date: Wed, 15 Oct 2014 12:36:55 +0000
Message-ID: <e836daeb52b74a2dbb581bf90d5092b8@MERCMBX34D.na.SAS.com> (raw)
In-Reply-To: <543CC6B0.2010001@tpf.co.jp>
References: <20141008175446.2567.20885@wrigleys.postgresql.org>
<CAB7nPqSX_E8yKSb=jVCi7XXANVb_8bXxb-cNRwaXrCa4diWVBA@mail.gmail.com>
<54375BB7.1080200@tpf.co.jp>
<dd795d3b94ee412a916f034018d60a93@MERCMBX34D.na.SAS.com>
<5438F61C.1050902@tpf.co.jp>
<3b164e3b4d9243269b66d7d5c67dab77@MERCMBX34D.na.SAS.com>
<543CC6B0.2010001@tpf.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Okay, I'll do my best.
Perhaps the first key to the scenario is that when you use the ODBC Administrator in Windows to set up the PostgreSQL DSN, the UI from the PostgreSQL driver is going to want a valid user name and password, which it stores in the registry. After doing that, go to the registry (HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\<PostgreSQL DSN>) and blank out the password.
In our application, we call SQLDriverConnect passing in a connection string that includes a user name but no password, and, importantly, we pass SQL_DRIVER_COMPLETE as the last parameter. So we are requesting that the driver prompt for connection information if it can't connect with the string we've passed in. It is at that point that the bad password is supplied, and that's when the access violation, sometimes, occurs. This morning, even I am having trouble reproducing the crash. It does not happen every time. Our testers in China seem to have better luck.
Eric
-----Original Message-----
From: Inoue, Hiroshi [mailto:inoue@tpf.co.jp]
Sent: Tuesday, October 14, 2014 2:46 AM
To: Eric Hill
Cc: Michael Paquier; PostgreSQL mailing lists
Subject: Re: [ODBC] [BUGS] BUG #11608: ODBC driver crashes after wrong password entered
(2014/10/12 2:28), Eric Hill wrote:
> Hey, Hiroshi,
>
> I am developer on the JMP statistical visualization tool dev team
> (www.jmp.com <http://www.jmp.com;). This is a desktop application
> that runs on Windows and Mac. Our product uses ODBC calls to connect
> to ODBC data sources and retrieve data. We have both 32-bit and
> 64-bit versions of the product. The scenario we are seeing this
> problem with is 64-bit JMP talking a Windows PostgreSQL server. The
> connection string is coming from the driver. I looked in the driver
> dialog to see if there was a way to specify SSL or something, but I did not see anything.
Unfortunately I can't reproduce the crash here.
What's your calling sequence of ODBC APIs after SQLDriverConnect() with bad password?
regards,
Hiroshi Inoue
--
I am using the free version of SPAMfighter.
SPAMfighter has removed 12751 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len
Do you have a slow PC? Try a Free scan
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
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-odbc@postgresql.org
Cc: Eric.Hill@jmp.com, inoue@tpf.co.jp, michael.paquier@gmail.com
Subject: Re: [BUGS] BUG #11608: ODBC driver crashes after wrong password entered
In-Reply-To: <e836daeb52b74a2dbb581bf90d5092b8@MERCMBX34D.na.SAS.com>
References: <20141008175446.2567.20885@wrigleys.postgresql.org> <CAB7nPqSX_E8yKSb=jVCi7XXANVb_8bXxb-cNRwaXrCa4diWVBA@mail.gmail.com> <54375BB7.1080200@tpf.co.jp> <dd795d3b94ee412a916f034018d60a93@MERCMBX34D.na.SAS.com> <5438F61C.1050902@tpf.co.jp> <3b164e3b4d9243269b66d7d5c67dab77@MERCMBX34D.na.SAS.com> <543CC6B0.2010001@tpf.co.jp> <e836daeb52b74a2dbb581bf90d5092b8@MERCMBX34D.na.SAS.com>
* 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