Opened 20 years ago

Closed 20 years ago

#668 closed defect (worksforme)

Mapscript generates URL with invalid SLD_BODY

Reported by: bartvde@… Owned by: mapserverbugs
Priority: high Milestone:
Component: MapScript-PHP Version: 4.2
Severity: normal Keywords:
Cc:

Description

When having the following LAYER (template values are filled in by Chameleon 
application):

LAYER
    CONNECTION "http://www.vz.geodan.nl:1112/cgi-bin/mapserv_42.exe?
map=c:/ms4w_20/apps/nisprestatie/map/nisprestatie_server.map"
    CONNECTIONTYPE WMS
      METADATA
        "wms_srs"	        "EPSG:28992"
        "wms_onlineresource"    "http://www.vz.geodan.nl:1112/cgi-
bin/mapserv_42.exe?
map=c:/ms4w_20/apps/nisprestatie/map/nisprestatie_server.map&"
        "wms_name"	        "template"
        "wms_title"	        "template"
        "wms_server_version"    "1.1.0"
        "wms_formatlist"        "image/gif  image/png  image/jpeg  image/wbmp  
application/x-shockwave-flash  text/html  application/x-pdf  image/tiff"
        "wms_format"	        "image/png"
        "wms_boundingbox"       "EPSG:28992 10000 305000 280000 619000"
        "wms_queriable"	        "1"
        "wms_latlonboundingbox"	"-173.433 41.4271 -13.0481 83.7466"
        
        # MUST HAVE THIS TO SUPPORT selection highlighting
        "wms_sld_body" "AUTO"
      END
    NAME "template"
    PROJECTION
      "init=epsg:28992"
    END
    SIZEUNITS PIXELS
    STATUS ON
    DUMP TRUE
    TEMPLATE "blank.html"
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    TYPE RASTER
    UNITS METERS
    CLASS
      NAME "hilight"
      SYMBOL 0 
      COLOR 0 255 0
    END
  END

a GetFeatureInfo request does not work on this LAYER as a URL is generated with 
an invalid SLD_BODY which makes Mapserver CGI crash. Leaving out 
the "wms_sld_body" "AUTO" part does not change the situation.

The SLD_BODY is:

<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/sldhttp://schemas.opengis.net/sld/1.
0.0/
StyledLayerDescriptor.xsd\">
</StyledLayerDescriptor>

Change History (3)

comment:1 by dmorissette, 20 years ago

Status: newassigned
I'm not sure to understand what's going on here enough to decide what to do with
this bug. Bart, is this still an issue in 4.2, 4.3? Assefa, do you understand
the problem?

comment:2 by assefa, 20 years ago

I do not think, It ia an issue anymore but Bart has to confirm it. The SLD
generation should be ok from test files I am using with recent mapserver 4.3. I

comment:3 by assefa, 20 years ago

Resolution: worksforme
Status: assignedclosed
closing it. Bart can repon it if necessary.
Note: See TracTickets for help on using tickets.