#7 closed defect (fixed)
WMS load getCapabilities problem with encoding (Umlaute)
Reported by: | christoph | Owned by: | christoph |
---|---|---|---|
Priority: | critical | Milestone: | 2.4.2 and older releases |
Component: | core | Version: | 2.4.1 |
Keywords: | Cc: | porath@… |
Description
Hi,
from version 2.4 on it is makes problems to load a wms with Umlaute (öüä). This is new? In Version <2.4 it was no problem.
öüä are often found in the abstracts of the wmss
How?
Could you please check?
Change History (21)
comment:1 by , 18 years ago
Owner: | removed |
---|
comment:2 by , 18 years ago
comment:3 by , 18 years ago
Priority: | major → critical |
---|
comment:4 by , 18 years ago
Owner: | set to |
---|
comment:5 by , 18 years ago
hello from remscheid (germany)
we have the same problem. would be nice to solve it soon :)
follow-up: 7 comment:6 by , 18 years ago
Version: | 2.4 → 2.4.1 |
---|
We have the same problem too, but there are no Umlaute in the wms or in the mapfile. In version 2.4.0 (Postgresql 8.1, PHP 5.2.0) it works fine. In version 2.4.1 (Postgresql 8.2, PHP 5.2.2) it stops.
comment:7 by , 18 years ago
Version: | 2.4.1 → 2.4 |
---|
comment:8 by , 18 years ago
comment:9 by , 18 years ago
Example from Holger Porath:
Error message:
file: http://lika.hessen.de/cgi-bin/lika-services/ogc-free-maps.plx?REQUEST=Ge tCapabilities&SERVICE=WMS&VERSION=1.1.1 Missing parameters:
id: version: 1.1.1 title: Hessen Geodaten abstract: Geobasisdaten maprequest: capabilitiesrequest: featureinforequest: gui_wms_mapformat: gui_wms_featureinfoformat: gui_wms_exceptionformat: gui_wms_epsg: wms_srs: gui_wms_visible: 1 id: parent: name: title: queryable: 0 minScale: 0 maxScale: 0 dataurl: metadataurl: layerstyle: name title legendurl legendurlformat
Data not commited
comment:10 by , 17 years ago
Version: | 2.4 → 2.4.1 |
---|
Now both have the same environment: PHP 5.2.2, Postgres 8.2.4.1 (on the same machine). Mapbender version 2.4.1 doesn't work. Mapbender version 2.4.0 works.
Either there are problems with the MB version or there are problems with my configuration of the new MB. I dont know.
comment:11 by , 17 years ago
This "Missing parameter"-Message seems to be a kind of general error when everything else fails (like Windows BSOD) . I got this message due to an invalid WMS-Service (provided by a Smallworld SIAS)
comment:12 by , 17 years ago
I dont think it's an WMS error. For example the WMS http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany/germany.map&REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1 broke in MB 2.4.1. And there shouldn't be errors.
comment:13 by , 17 years ago
comment:14 by , 17 years ago
The examples above (lika.hessen.de..., wms1.ccgis.de..., www.gis.zh.ch....) all use ISO-8859-1 character encoding for the capabilities document. May this be the issue? I found out that from mapbender 2.4.0 to 2.4.1 there were changes made regarding to character encoding. The changes affect the method createObjFromXML in class wms (file class_wms.php). MapBender 2.4.0: $this->wms_getcapabilities_doc = $data; MapBender 2.4.1: $this->wms_getcapabilities_doc = $this->char_encode($data); Can someone easily check out if this change is responsible for the error?
Regards
Holger
comment:15 by , 17 years ago
Cc: | added |
---|
Holger,
do you have difficulties loading these WMS? If so, please let us know about your setup.
Thanks
comment:16 by , 17 years ago
reported by Michael Manns
seems to work under
Windows, PostgreSQL (UTF8)
Linux, MySQL (UTF8)
comment:17 by , 17 years ago
If you can produce this error please send the following checklist to mapbender_dev@…:
mapbender.conf mapbender.log file php log file phpinfo()
comment:18 by , 17 years ago
If you can produce this error please send the following checklist to mapbender_dev@…:
mapbender.conf
mapbender.log file
php log file
phpinfo()
comment:19 by , 17 years ago
comment:20 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:21 by , 17 years ago
Milestone: | → 2.4.2 and older releases |
---|
I have the same problem. With Mapbender 2.2.3 everything works find. With Mapbender 2.4.1 i cannot upload wms capabilities. The error message tells about missing parameters and stops the report of the parameter just when the character appears.
Regards
Holger