[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapbender-commits
Subject:    [Mapbender-commits] r9739 - in trunk/mapbender: http_auth/http owsproxy/http
From:       svn_mapbender () osgeo ! org
Date:       2017-05-12 10:05:32
Message-ID: 20170512100532.933DB3900EE () trac ! osgeo ! org
[Download RAW message or body]

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();

_______________________________________________
Mapbender_commits mailing list
Mapbender_commits@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapbender_commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic