[mapserver-users] MapServer 5.2.2 GetFeatureInfo returns an error

Steve Lime Steve.Lime at dnr.state.mn.us
Wed Apr 1 07:25:56 PDT 2009


Correct, the fixes are easy:

1) for the symbol set, make sure the file is structured like so:

SYMBOLSET
  ...symbols...
END

2) for template error, add the magic template string <!-- MapServer
Template --> to the top of 
the file

All should be well then.

Steve

>>> On 4/1/2009 at 7:22 AM, in message
<CC197224AC75CE4DB23F739B16891B86F73370 at tikka.haapa.mmm.fi>, "Rahkonen
Jukka"
<Jukka.Rahkonen at mmmtike.fi> wrote:
> Hi,
> 
> Perhaps due to security fixes announced some days ago:
> 
> From: Steve Lime 
> Date: 2009-03-27 02:40:02 GMT (5 days, 9 hours and 39 minutes ago)
> 
> "MapServer 5.2.2 and 4.10.4 have been released. (Version 5.4 will
contain 
> all of these
> fixes at the start and a beta 4 release will be available in a day or
so.)
> 
> The releases contain fixes for issues discovered in an audit of the
CGI by a 
> 3rd party 
> (tickets #2939, #2941, #2942, #2943 and #2944). The issues are
detailed at:
> 
>   http://trac.osgeo.org/mapserver/ticket/2939 
>   http://trac.osgeo.org/mapserver/ticket/2941 
>   http://trac.osgeo.org/mapserver/ticket/2942 
>   http://trac.osgeo.org/mapserver/ticket/2943 
>   http://trac.osgeo.org/mapserver/ticket/2944 
> 
> Also provided is support for RFC-56 that addresses tightening up the
control 
> of 
> access to mapfiles and templates:
> 
>   http://mapserver.org/development/rfc/ms-rfc-56.html" 
> 
> -Jukka Rahkonen-
> 
> 
> 
>> -----Alkuperäinen viesti-----
>> Lähettäjä: mapserver-users-bounces at lists.osgeo.org 
>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta 
>> Maarten Plieger
>> Lähetetty: 1. huhtikuuta 2009 12:10
>> Vastaanottaja: mapserver-users at lists.osgeo.org 
>> Aihe: [mapserver-users] MapServer 5.2.2 GetFeatureInfo 
>> returns an error
>> 
>> Hi All,
>> We are updating our mapserver services from 5.2.0 to 5.2.2. I 
>> have two issues doing this, one with SYMBOLSET and one with 
>> TEMPLATE (for queries):
>> 
>> - The first is that the SYMBOLSET in my mapfile gives an error:
>> SYMBOLSET      "/data1/mapserver/symbols/symbols35.sym"
>> When I do a getcapabilities I get:
>>   "msLoadSymbolSet(): Unknown identifier. First token must be 
>> SYMBOLSET, this doesn't look like a symbol file"
>> I do not need this symbolset, so I have uncommented it
>> 
>> - The second problem is GetFeatureInfo. GetFeatureInfo returns
this:
>> Content-type: application/vnd.ogc.se_xml isValidTemplate(): 
>> Web application error. Missing magic string, 
>> ../InfoQueryTemplates/SCIA_IMAP_L3.html doesn't look like a 
>> MapServer template.
>> 
>> My template "SCIA_IMAP_L3.html" in the layer looks like this:
>>   <b>xVMR_CH4</b><br>
>>   longitude: [mapx]<br>
>>   latitude: [mapy]<br>
>>   vertical_mixing_ratio_of_methane_in_air: [value_0] ppb<br>
>> 
>> This template is configured in a LAYER object as: TEMPLATE 
>> '../InfoQueryTemplates/SCIA_IMAP_L3.html'
>> 
>> This is the getfeatureinfo request for 5.2.2:
>> http://geoservices.knmi.nl/cgi-bin/SCIA__CONS_R___IMAP____L3_t 
>> est_5.2.2.cgi?SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=1.1.1
>> &SRS=EPSG:4326&LAYERS=SCIA__CONS_R___IMAP____L3__20040101T0000
>> 00_20040201T000000_0001_CH4&QUERY_LAYERS=SCIA__CONS_R___IMAP__
>> __L3__20040101T000000_20040201T000000_0001_CH4&BBOX=-180,-92.2
> 2011385199241,180,92.22011385199241&WIDTH=1581&HEIGHT=810&X=361&Y=> 
> 250&FORMAT=image/gif&INFO_FORMAT=text/html&STYLES=&
>> This used to work well with version 5.2.0:
>> http://geoservices.knmi.nl/cgi-bin/SCIA__CONS_R___IMAP____L3.c 
>> gi?SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=1.1.1&SRS=EPSG:4
>> 326&LAYERS=SCIA__CONS_R___IMAP____L3__20040101T000000_20040201
> T000000_0001_CH4&QUERY_LAYERS=SCIA__CONS_R___IMAP____L3__> 
> 20040101T000000_20040201T000000_0001_CH4&BBOX=-180,-92.2201138
> 5199241,180,92.22011385199241&WIDTH=1581&HEIGHT=810&X=361&Y=250> 
> &FORMAT=image/gif&INFO_FORMAT=text/html&STYLES=&
>> 
>> Am I doing something wrong?
>> 
>> Thanks in advance,
>> Maarten Plieger
>> 
>> 
>> 
>> 
>> --
>> Maarten Plieger
>> KNMI, R&D Information and Observation Technology, De Bilt
>> (t) +31 30 2206330 
>> 
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org 
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users 
>> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list