Opened 15 years ago

Closed 15 years ago

#3133 closed defect (fixed)

GetMap with SLD sent to a WMS 1.1.0, 1.1.1 or 1.3.0 server failed

Reported by: nsavard Owned by: assefa
Priority: normal Milestone: 5.6 release
Component: WMS Server Version: 5.4
Severity: normal Keywords: ogc, wms, getmap, sld, sld_body
Cc: tomkralidis, assefa, dmorissette

Description

A GetMap sent to a WMS 1.1.0, 1.1.1 or 1.3.0 server with a sld_body produces a premature end of script (status 500). The sld_body is built from the class of a layer of the map file (wms_sld_body set to auto). The request is shown below. I attached a test case with the map file from which the sld_body was built and the wms server.

http://localhost:9099/cgi-bin/mapserv?map=/home/nsavard/data/mapdata/world_testdata
/map/ticket_wms_server.map&LAYERS=WorldGen_Outline&REQUEST=GetMap&SERVICE=WMS&FORMAT=image
/png&SLD_BODY=%3CStyledLayerDescriptor+version%3D%221.0.0%22+xmlns%3D%22http%3A%2F
%2Fwww.opengis.net%2Fsld%22+xmlns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%22+xmlns%3Aogc
%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22+xmlns%3Axlink%3D%22http%3A%2F
%2Fwww.w3.org%2F1999%2Fxlink%22+xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-
instance%22+xsi%3AschemaLocation%3D%22http%3A%2F%2Fwww.opengis.net%2Fsld+http%3A%2F
%2Fschemas.opengis.net%2Fsld%2F1.0.0%2FStyledLayerDescriptor.xsd%22%3E%0A%3CNamedLayer%3E%0A
%3CUserStyle%3E%0A%3CFeatureTypeStyle%3E%0A%3CRule%3E%0A%3CName%3EUnknown%3C%2FName%3E%0A
%3CLineSymbolizer%3E%0A%3CStroke%3E%0A%3CCssParameter+name%3D%22stroke%22%3E%230000ff
%3C%2FCssParameter%3E%0A%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter
%3E%0A%3CCssParameter+name%3D%22stroke-width%22%3E5.00%3C%2FCssParameter%3E%0A%3C%2FStroke
%3E%0A%3C%2FLineSymbolizer%3E%0A%3C%2FRule%3E%0A%3C%2FFeatureTypeStyle%3E%0A%3C%2FUserStyle
%3E%0A%3C%2FNamedLayer%3E%0A%3C%2FStyledLayerDescriptor%3E%0A&STYLES=&HEIGHT=250&VERSION=1.1.0
&SRS=EPSG:4326&WIDTH=500&BBOX=-180.722891566266,-90.3614457831328,180.722891566266,90.3614457831328&TRANSPARENT=TRUE&
EXCEPTIONS=application/vnd.ogc.se_inimage

Attachments (1)

ticket3133.tgz (75.4 KB ) - added by nsavard 15 years ago.
sld.map to build sld_body,ticket_wms_server.map WMS server, and data

Download all attachments as: .zip

Change History (3)

by nsavard, 15 years ago

Attachment: ticket3133.tgz added

sld.map to build sld_body,ticket_wms_server.map WMS server, and data

comment:1 by dmorissette, 15 years ago

Cc: dmorissette added
Owner: changed from mapserverbugs to assefa

comment:2 by assefa, 15 years ago

Resolution: fixed
Status: newclosed

fixed. committed in r9438

Note: See TracTickets for help on using tickets.