[Mapbender-commits] r9739 - in trunk/mapbender: http_auth/http owsproxy/http

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri May 12 03:05:32 PDT 2017


Author: verenadiewald
Date: 2017-05-12 03:05:32 -0700 (Fri, 12 May 2017)
New Revision: 9739

Modified:
   trunk/mapbender/http_auth/http/index.php
   trunk/mapbender/owsproxy/http/index.php
Log:
bugfix for parameter name typename for WFS GetFeature and DescribeFeaturetype requests

Modified: trunk/mapbender/http_auth/http/index.php
===================================================================
--- trunk/mapbender/http_auth/http/index.php	2017-05-10 12:07:19 UTC (rev 9738)
+++ trunk/mapbender/http_auth/http/index.php	2017-05-12 10:05:32 UTC (rev 9739)
@@ -266,7 +266,7 @@
         	$storedQueryId = $reqParams['storedquery_id'];
         	$arrayOnlineresources = checkWfsStoredQueryPermission($owsproxyString, $storedQueryId, $userId);
 	} else {
-		$arrayFeatures = array($reqParams['typenames']);
+		$arrayFeatures = array($reqParams['typename']);
         	$arrayOnlineresources = checkWfsPermission($owsproxyString, $arrayFeatures, $userId);
 	}
         $query->setOnlineResource($arrayOnlineresources['wfs_getfeature']);
@@ -281,7 +281,7 @@
                 $price, 0, $reqParams['storedquery_id']);
 	    } else {
             	$log_id = $n->logWfsProxyRequest($arrayOnlineresources['wfs_id'], $userId, $request,
-                $price, 0, $reqParams['typenames']);
+                $price, 0, $reqParams['typename']);
 	    }
         } else {
 		$log_id = false;
@@ -299,7 +299,7 @@
         }
         break;
     case 'describefeaturetype':
-        $arrayFeatures = array($reqParams['typenames']);
+        $arrayFeatures = array($reqParams['typename']);
         $arrayOnlineresources = checkWfsPermission($owsproxyString, $arrayFeatures, $userId);
         $query->setOnlineResource($arrayOnlineresources['wfs_describefeaturetype']);
         $request = $query->getRequest();

Modified: trunk/mapbender/owsproxy/http/index.php
===================================================================
--- trunk/mapbender/owsproxy/http/index.php	2017-05-10 12:07:19 UTC (rev 9738)
+++ trunk/mapbender/owsproxy/http/index.php	2017-05-12 10:05:32 UTC (rev 9739)
@@ -354,7 +354,7 @@
         	$storedQueryId = $reqParams['storedquery_id'];
         	$arrayOnlineresources = checkWfsStoredQueryPermission($owsproxyString, $storedQueryId, $userId);
 	} else {
-		$arrayFeatures = array($reqParams['typenames']);
+		$arrayFeatures = array($reqParams['typename']);
         	$arrayOnlineresources = checkWfsPermission($owsproxyString, $arrayFeatures, $userId);
 	}
 	$query->setOnlineResource($arrayOnlineresources['wfs_getfeature']);
@@ -369,7 +369,7 @@
                 $price, 0, $reqParams['storedquery_id']);
 	    } else {
             	$log_id = $n->logWfsProxyRequest($arrayOnlineresources['wfs_id'], $userId, $request,
-                $price, 0, $reqParams['typenames']);
+                $price, 0, $reqParams['typename']);
 	    }
         } else {
 		$log_id = false;
@@ -385,7 +385,7 @@
         }
         break;
     case 'describefeaturetype':
-        $arrayFeatures = array($reqParams['typenames']);
+        $arrayFeatures = array($reqParams['typename']);
         $arrayOnlineresources = checkWfsPermission($query->getOwsproxyServiceId(), $arrayFeatures, $userId);
         $query->setOnlineResource($arrayOnlineresources['wfs_describefeaturetype']);
         $request = $query->getRequest();



More information about the Mapbender_commits mailing list