[Mapserver-users] SLD_BODY and internal server error

Bart van den Eijnden bartvde at xs4all.nl
Sat May 15 12:21:17 EDT 2004


Hi list,

I have encountered an internal server error when performing a GetMap 
request and a GetFeatureInfo request using an SLD_BODY. BTW: the URL was 
not generated by me but by Mapscript/Chameleon.

The URL looks like the following:
http://myserver:1112/cgi-bin/mapserv_42.exe?map=c%3A%2Fms4w_20%2Fapps%2Fnisprestatie%2Fmap%2Fnisprestatie_server.map&LAYERS=bon_regio_vlak_2005&REQUEST=GetFeatureInfo&SERVICE=WMS&FORMAT=image%2Fpng&SLD_BODY=%3CStyledLayerDescriptor+version%3D%5C%221.0.0%5C%22+xmlns%3D%5C%22http%3A%2F%2Fwww.opengis.net%2Fsld%5C%22+xmlns%3Agml%3D%5C%22http%3A%2F%2Fwww.opengis.net%2Fgml%5C%22+xmlns%3Aogc%3D%5C%22http%3A%2F%2Fwww.opengis.net%2Fogc%5C%22+xmlns%3Axlink%3D%5C%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%5C%22+xmlns%3Axsi%3D%5C%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%5C%22+xsi%3AschemaLocation%3D%5C%22http%3A%2F%2Fwww.opengis.net%2Fsld+http%3A%2F%2Fschemas.opengis.net%2Fsld%2F1.0.0%2FStyledLayerDescriptor.xsd%5C%22%3E%0A%3C%2FStyledLayerDescriptor%3E%0A&STYLES=&HEIGHT=400&QUERY_LAYERS=bon_regio_vlak_2005&VERSION=1.1.0&SRS=EPSG%3A28992&WIDTH=550&BBOX=-79153.571429%2C299294.272727%2C369153.571429%2C624705.727273&TRANSPARENT=TRUE&INFO_FORMAT=application%2Fvnd.ogc.gml&X=427&EXCEPTIONS= 
application%2Fvnd.ogc.se_xml&Y=79

If I change the URL to do a GetMap request I get the same internal server 
error. If I leave out the SLD_BODY part no problems. Also, why is the 
GetFeatureInfo request interpreting the SLD_BODY, at least that is what I 
assume it is doing?

So maybe these are 2 separate issues:
1) crash when having this kind of SLD in the SLD_BODY (probably because of 
the escaping of quotes)
2) GetFeatureInfo interpreting the SLD_BODY parameter (should it not just 
ignore it?)

When I url_decode the SLD part it says (the quotes seem to be escaped by 
\ which is strange):

<StyledLayerDescriptor version=\"1.0.0\" 
xmlns=\"http://www.opengis.net/sld\" 
xmlns:gml=\"http://www.opengis.net/gml\" 
xmlns:ogc=\"http://www.opengis.net/ogc\" xmlns:xlink=\"
http://www.w3.org/1999/xlink\" 
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" 
xsi:schemaLocation=\"http://www.opengis.net/sld 
http://schemas.opengis.net/sld/1.0.0/
StyledLayerDescriptor.xsd\">
</StyledLayerDescriptor>

[Sat May 15 18:14:51 2004] [error] [client 192.168.3.4] Premature end of 
script headers: mapserv_42.exe

Best regards,
Bart




More information about the mapserver-users mailing list