diff options
author | Sam Patel <46026722+SamMonoRT@users.noreply.github.com> | 2021-03-10 17:44:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 17:44:38 +0300 |
commit | ba3bbd5f5bd136f9450a6bd53a3c41747bc147e1 (patch) | |
tree | 692018e162ab652004e34463153e83cb337520fc /mcs/class | |
parent | 5e70c0b65b43f233799f3639c22a76f407240428 (diff) |
CredScan issue - remove hardcoded password (#20908)
* CredScan issue - remove hardcoded password
Remove commented out lines of code which had a hardcoded password flagged by the CredScan tool (line 86)
* update net_4_)/web.config file
* update net_1_1\machine.config
* update net_4_5/web.config
* update net_2_0/web.config
Diffstat (limited to 'mcs/class')
-rw-r--r-- | mcs/class/System.Data/Test/ProviderTests/System.Data.OleDb.jvm/OleDbCommand/OleDbCommand_Dispose.cs | 53 |
1 files changed, 1 insertions, 52 deletions
diff --git a/mcs/class/System.Data/Test/ProviderTests/System.Data.OleDb.jvm/OleDbCommand/OleDbCommand_Dispose.cs b/mcs/class/System.Data/Test/ProviderTests/System.Data.OleDb.jvm/OleDbCommand/OleDbCommand_Dispose.cs index 1dc993950f8..f4464e40f18 100644 --- a/mcs/class/System.Data/Test/ProviderTests/System.Data.OleDb.jvm/OleDbCommand/OleDbCommand_Dispose.cs +++ b/mcs/class/System.Data/Test/ProviderTests/System.Data.OleDb.jvm/OleDbCommand/OleDbCommand_Dispose.cs @@ -55,57 +55,6 @@ public class OleDbCommand_Dispose : GHTBase } } - //problems from Synergy - - //Ofer, - - //Take a look at #1. Test this to see if we have a problem in dispose. If we do, add a test for this to make sure we catch it in next rounds. - - // - - //-----Original Message----- - //From: David Teplitchi [mailto:davidt@mainsoft.com] - //Sent: Sunday, March 21, 2004 9:31 AM - //To: //Oved Yavine// - //Subject: 2 problems from Synergy - - - //Please check those 2 problems reported by Synergy and tell me what do you think. - - //1) The following code works in dotnet but doesn//t work in j2ee. - //// Oracle Drivers - //OleDbConnection Connect; - //OleDbDataReader DbReader; - //OleDbCommand DbCommand; - //IDataReader DR; - //string sSQL; - //int iField; - //bool bFound; - //try - //{ - //Connect = new OleDbConnection("Provider=\"MSDAORA.1\";User - //ID=COM;Password=SQL;Data Source=LLO1;HostName=WS10359;Port=1521"); - //Connect.Open(); - //sSQL = "SELECT * FROM PRODUCT WHERE PRO_SKU = //SKU_208//"; - //DbCommand = new OleDbCommand(sSQL, Connect); - //DbReader = DbCommand.ExecuteReader(CommandBehavior.SingleRow); - //DR = DbReader; - //DbCommand.Dispose(); // comment out - ////DbCommand = null; - //bFound = DbReader.HasRows; - //DR.Read(); - //// Get Column Ordinal - //iField = DR.GetOrdinal("PRO_DESCRIPTION"); - - //string sDesc = DR.GetString(iField); - //} - //catch(Exception e) - //{ - //this.WriteErrorLog(e.Message); - //} - //i have identified the problem as being "DbCommand.Dispose()". If you comment this line out or make it - //"DbCommand = null", then its okay. So this instruction doesnt work the same in both in .net and j2ee. - [Test] public void run() @@ -146,4 +95,4 @@ public class OleDbCommand_Dispose : GHTBase -}
\ No newline at end of file +} |