[mapguide-commits] r9038 - trunk/MgDev/Web/src/HttpHandler
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon Sep 19 06:25:35 PDT 2016
Author: jng
Date: 2016-09-19 06:25:34 -0700 (Mon, 19 Sep 2016)
New Revision: 9038
Modified:
trunk/MgDev/Web/src/HttpHandler/HttpGetDynamicMapOverlayImage.cpp
Log:
#2738: FORMAT is a required parameter for GETDYNAMICMAPOVERLAYIMAGE. So throw if this isn't specified.
Modified: trunk/MgDev/Web/src/HttpHandler/HttpGetDynamicMapOverlayImage.cpp
===================================================================
--- trunk/MgDev/Web/src/HttpHandler/HttpGetDynamicMapOverlayImage.cpp 2016-09-19 13:06:25 UTC (rev 9037)
+++ trunk/MgDev/Web/src/HttpHandler/HttpGetDynamicMapOverlayImage.cpp 2016-09-19 13:25:34 UTC (rev 9038)
@@ -41,7 +41,18 @@
// Get the requested image format
m_mapFormat = params->GetParameterValue(MgHttpResourceStrings::reqRenderingFormat);
+
+ // Format is required. Throw if not given
+ if (m_mapFormat.empty())
+ {
+ MgStringCollection arguments;
+ arguments.Add(MgHttpResourceStrings::reqRenderingFormat);
+ arguments.Add(MgResources::BlankArgument);
+ throw new MgInvalidArgumentException(L"MgHttpGetDynamicMapOverlayImage.MgHttpGetDynamicMapOverlayImage",
+ __LINE__, __WFILE__, &arguments, L"MgStringEmpty", NULL);
+ }
+
INT32 version = m_userInfo->GetApiVersion();
if (version == MG_API_VERSION(1,0,0))
{
More information about the mapguide-commits
mailing list