|
@@ -43,6 +43,8 @@ class Route_UrlAction_Ant extends Route_Ant {// @doc @see Route_Ant
|
|
|
if (!$path) throw new Exception("Missing Ant path!");
|
|
if (!$path) throw new Exception("Missing Ant path!");
|
|
|
$featureID = V::get('featureID', '', $_GET);
|
|
$featureID = V::get('featureID', '', $_GET);
|
|
|
$namespace = V::get('namespace', '', $_GET);
|
|
$namespace = V::get('namespace', '', $_GET);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// TODO: validate missing ...
|
|
// TODO: validate missing ...
|
|
|
DBG::nicePrint($path, '$path');
|
|
DBG::nicePrint($path, '$path');
|
|
|
DBG::nicePrint($featureID, '$featureID');
|
|
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}'");
|
|
if (!array_key_exists($path, $taskList)) throw new Exception("Ant path not exists! '{$path}'");
|
|
|
|
|
|
|
|
echo UI::h('hr');
|
|
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']));
|
|
$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";
|
|
$cmd = "cd {$this->pathUrlActions}{$path} && {$this->antBin} -S -Durl='{$testUrl}' -DpasswordBase64Basic='{$cryptedPass}' 2>&1";
|
|
|
DBG::nicePrint(str_replace(APP_PATH_ROOT, 'SE', $cmd), 'command');
|
|
DBG::nicePrint(str_replace(APP_PATH_ROOT, 'SE', $cmd), 'command');
|