Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#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 christoph, 17 years ago

Owner: christoph removed

comment:2 by porath@…, 17 years ago

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

comment:3 by anonymous, 17 years ago

Priority: majorcritical

comment:4 by anonymous, 17 years ago

Owner: set to christoph

comment:5 by anonymous, 17 years ago

hello from remscheid (germany)

we have the same problem. would be nice to solve it soon :)

comment:6 by M. Heber, 17 years ago

Version: 2.42.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.

in reply to:  6 comment:7 by anonymous, 17 years ago

Version: 2.4.12.4

comment:9 by christoph, 17 years ago

Example from Holger Porath:

http://lika.hessen.de/cgi-bin/lika-services/ogc-free-maps.plx?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1

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 M. Heber, 17 years ago

Version: 2.42.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 JanE, 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 M. Heber, 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:14 by porath@…, 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 christoph, 17 years ago

Cc: porath@… added

Holger,

do you have difficulties loading these WMS? If so, please let us know about your setup.

Thanks

comment:17 by christoph, 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 christoph, 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:20 by christoph, 17 years ago

Resolution: fixed
Status: newclosed

comment:21 by christoph, 17 years ago

Milestone: 2.4.2 and older releases
Note: See TracTickets for help on using tickets.