[Mapbender-commits] r9863 - in trunk/mapbender/http: classes php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Feb 14 03:56:02 PST 2018


Author: armin11
Date: 2018-02-14 03:56:02 -0800 (Wed, 14 Feb 2018)
New Revision: 9863

Modified:
   trunk/mapbender/http/classes/class_ckanApi.php
   trunk/mapbender/http/classes/class_syncCkan.php
   trunk/mapbender/http/php/mod_GetPublishedData.php
Log:
Fix for ckan schema name - alter to dataset, don't handle SSL (for devel only), don't check session for published spatial data from wmc

Modified: trunk/mapbender/http/classes/class_ckanApi.php
===================================================================
--- trunk/mapbender/http/classes/class_ckanApi.php	2018-02-07 17:10:00 UTC (rev 9862)
+++ trunk/mapbender/http/classes/class_ckanApi.php	2018-02-14 11:56:02 UTC (rev 9863)
@@ -1021,6 +1021,9 @@
 		//$e = new mb_exception("testckan: ckan url to request: ".$this->base_url . $url);
 		$curlUrl = $this->base_url . $url;
 		curl_setopt($this->ch, CURLOPT_URL, $curlUrl);
+//TODO - this is not secure - delete it in productive environments!
+curl_setopt($this->ch, CURLOPT_SSL_VERIFYHOST, 0);
+curl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, 0);
 		// If POST or PUT, add Authorization: header and request body
 		if ($method === 'POST' || $method === 'PUT') {
 			// We needs a key and some data, yo!

Modified: trunk/mapbender/http/classes/class_syncCkan.php
===================================================================
--- trunk/mapbender/http/classes/class_syncCkan.php	2018-02-07 17:10:00 UTC (rev 9862)
+++ trunk/mapbender/http/classes/class_syncCkan.php	2018-02-14 11:56:02 UTC (rev 9863)
@@ -152,7 +152,7 @@
 
 $ckanPackage->groups[0]->name = "transparenzgesetz";
 $ckanPackage->state = "active";
-$ckanPackage->type = "decision-rp-1";
+$ckanPackage->type = "dataset";
 $ckanPackage->license_id = "odc-odbl";
 	//pull filter
 	if (isset($central_filter) && $central_filter !== "") {
@@ -1169,7 +1169,7 @@
 	//special categories
 	//$ckanPackage->govdata_categories = [];
 	$ckanPackage->transparency_category_de_rp = "spatial_data";
-	$ckanPackage->type = "ckan-govdata-full-1-1";
+	$ckanPackage->type = "dataset";
 	//build resources:
 	$resourcesArray = array();
 	//initialize views - things for which a preview should be available 

Modified: trunk/mapbender/http/php/mod_GetPublishedData.php
===================================================================
--- trunk/mapbender/http/php/mod_GetPublishedData.php	2018-02-07 17:10:00 UTC (rev 9862)
+++ trunk/mapbender/http/php/mod_GetPublishedData.php	2018-02-14 11:56:02 UTC (rev 9863)
@@ -8,7 +8,7 @@
 //import classes
 require_once(dirname(__FILE__) . "/../../core/globalSettings.php");
 require_once(dirname(__FILE__) . "/../classes/class_wmc.php");
-require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
+//require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
 require_once(dirname(__FILE__)."/../classes/class_Uuid.php");
 require_once(dirname(__FILE__)."/../classes/class_kml_ows.php");
 /**



More information about the Mapbender_commits mailing list