[mapserver-users] Url encoding problem in Mapserver 5.0.3

Lars Lingner ml at lingner.eu
Sat Apr 10 14:27:46 EDT 2010


ahlah schrieb:
> Hi,
> 
> I have Mapserver in Debian Lenny. Mapserver is version 5.0.3-3 installed
> from official Lenny package
> (http://packages.debian.org/fi/lenny/cgi-mapserver).
> 
> My Mapserver acts as WMS-client to another WMS-server.
> 
> Problem is that that Mapserver 5.0.3 encodes special characters in
> WMS-parameters in url  to %xF format before sending and WMS server rejects
> the request.
> 
> WMS parameters in url should be in format:
> LAYERS=map_250k&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/png&STYLES=.....
> etc.
> 
> Mapserver 5.0.3 encodes the url string like this:
> LAYERS=map%5F250k&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=....
> etc.
> 
> I found discussion about this issue and it seems that it is a bug which is
> fixed in new versions:
> http://trac.osgeo.org/mapserver/ticket/1296
> 
> Is there any workaround to prevent this happen in version 5.0.3? It is the
> latest version in official lenny packages.
> 
> The other alternative is to compile new MapServer version from sources but
> can I do that in Debian Lenny without meeting never ending dependency
> problems in compiling?
> 

There might be a further alternative: You could use the repository from
gfoss.it

They have the current stable version 5.6.3

You just have to update your /etc/apt/sources.list as in
http://debian.gfoss.it/README

Lars


More information about the mapserver-users mailing list