Bug #13321 Persist security info does not woek
Submitted: 19 Sep 2005 13:30 Modified: 19 Sep 2005 14:09
Reporter: Pierre-Yves Thoulon Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Connector / NET Severity:S2 (Serious)
Version:1.0.5 OS:Windows (Windows XP SP2)
Assigned to: Reggie Burnett CPU Architecture:Any

[19 Sep 2005 13:30] Pierre-Yves Thoulon
Description:
The Persist Security Info connection string parameter no longer seems to be taken into account by v1.0.5 of the connector. In 1.0.4, getting the ConnectionString property for a MySqlConnection left out the Password field if Persist Security Info was set to false. In 1.0.5, it apparently no longer does.

How to repeat:
MySqlConnection sqlc = new MySqlConnection();
sqlc.ConnectionString = "Persist Security Info=False;Host=myHost;User=myUser;Password=myPassword";

Debug.WriteLine(sqlc.ConnectionString);
// with 1.0.4, prints out: Persist Security Info=False;Host=myHost;User=myUser
// with 1.0.5, prints out: Persist Security Info=False;Host=myHost;User=myUser;Password=myPassword
[19 Sep 2005 14:09] Reggie Burnett
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.mysql.com/documentation/ and the instructions on
how to report a bug at http://bugs.mysql.com/how-to-report.php

Additional info:

Actually it is working properly now.  The password continues to be shown in the connection string until the connection has been opened at least once.
[19 Sep 2005 14:37] Pierre-Yves Thoulon
Got it. Sorry about this. I'll change my code.