[mapguide-commits] r5120 - trunk/Tools/Maestro/MaestroAPI

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Sep 7 20:13:06 EDT 2010


Author: jng
Date: 2010-09-08 00:13:06 +0000 (Wed, 08 Sep 2010)
New Revision: 5120

Modified:
   trunk/Tools/Maestro/MaestroAPI/HttpServerConnection.cs
Log:
Fix #1430: Allow empty passwords for http connection


Modified: trunk/Tools/Maestro/MaestroAPI/HttpServerConnection.cs
===================================================================
--- trunk/Tools/Maestro/MaestroAPI/HttpServerConnection.cs	2010-09-07 02:38:14 UTC (rev 5119)
+++ trunk/Tools/Maestro/MaestroAPI/HttpServerConnection.cs	2010-09-08 00:13:06 UTC (rev 5120)
@@ -151,12 +151,11 @@
             }
             else //Assuming username/password combination
             {
+                string pwd = initParams[PARAM_PASSWORD] ?? string.Empty;
                 if (initParams[PARAM_USERNAME] == null)
                     throw new ArgumentException("Missing required connection parameter: " + PARAM_USERNAME);
-                if (initParams[PARAM_PASSWORD] == null)
-                    throw new ArgumentException("Missing required connection parameter: " + PARAM_PASSWORD);
-
-                InitConnection(new Uri(initParams[PARAM_URL]), initParams[PARAM_USERNAME], initParams[PARAM_PASSWORD], locale, allowUntestedVersion);
+                
+                InitConnection(new Uri(initParams[PARAM_URL]), initParams[PARAM_USERNAME], pwd, locale, allowUntestedVersion);
             }
         }
 



More information about the mapguide-commits mailing list