[mapguide-commits] r5198 -
sandbox/maestro-3.0/OSGeo.MapGuide.MaestroAPI.Http
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Sep 28 04:20:49 EDT 2010
Author: jng
Date: 2010-09-28 08:20:48 +0000 (Tue, 28 Sep 2010)
New Revision: 5198
Modified:
sandbox/maestro-3.0/OSGeo.MapGuide.MaestroAPI.Http/HttpServerConnection.cs
Log:
Forward-port #1430 fix
Modified: sandbox/maestro-3.0/OSGeo.MapGuide.MaestroAPI.Http/HttpServerConnection.cs
===================================================================
--- sandbox/maestro-3.0/OSGeo.MapGuide.MaestroAPI.Http/HttpServerConnection.cs 2010-09-27 23:33:55 UTC (rev 5197)
+++ sandbox/maestro-3.0/OSGeo.MapGuide.MaestroAPI.Http/HttpServerConnection.cs 2010-09-28 08:20:48 UTC (rev 5198)
@@ -192,12 +192,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