a.binder пре 9 година
родитељ
комит
af8af07876
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      SE/se-lib/Route/UrlAction/Ant.php

+ 6 - 2
SE/se-lib/Route/UrlAction/Ant.php

@@ -43,6 +43,8 @@ class Route_UrlAction_Ant extends Route_Ant {// @doc @see Route_Ant
       if (!$path) throw new Exception("Missing Ant path!");
       $featureID = V::get('featureID', '', $_GET);
       $namespace = V::get('namespace', '', $_GET);
+      
+
       // TODO: validate missing ...
       DBG::nicePrint($path, '$path');
       DBG::nicePrint($featureID, '$featureID');
@@ -52,8 +54,10 @@ class Route_UrlAction_Ant extends Route_Ant {// @doc @see Route_Ant
       if (!array_key_exists($path, $taskList)) throw new Exception("Ant path not exists! '{$path}'");
 
       echo UI::h('hr');
-
-      $testUrl = Request::getPathUri() . "wfs-data.php/default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=p5_default_db:TEST_PERMS&SRSNAME=EPSG:3003&featureID=TEST_PERMS.63";
+      
+	  
+//      $testUrl = Request::getPathUri() . "wfs-data.php/default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=p5_default_db:TEST_PERMS&SRSNAME=EPSG:3003&featureID=TEST_PERMS.63";
+      $testUrl = Request::getPathUri() . "wfs-data.php/default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=".$namespace."&SRSNAME=EPSG:3003&featureID=".$featureID";
       $cryptedPass = base64_encode(User::getLogin() . ":" . Crypt::decrypt($_SESSION['ADM_PASS_HASH']));
       $cmd = "cd {$this->pathUrlActions}{$path} && {$this->antBin} -S  -Durl='{$testUrl}' -DpasswordBase64Basic='{$cryptedPass}' 2>&1";
       DBG::nicePrint(str_replace(APP_PATH_ROOT, 'SE', $cmd), 'command');