[mapserver-dev] INCLUDE '...' before MAP gives "Unknownidentifier.
First token must be MAP..."
David Fuhry
dfuhry at acm.org
Sat May 9 13:40:16 EDT 2009
The MAP doc page doesn't specify OUTPUTFORMAT as a valid subtoken, and
the OUTPUTFORMAT doc page doesn't mention anything about declaring
OUTPUTFORMAT inside MAP (only a "map file").
So I never realized that it possible, let alone advisable or required,
to nest OUTPUTFORMAT inside MAP. That's a good fix. Thanks!
-Dave
Steve Lime wrote:
> Certainly an easier fix than patching the source... The requirement that the MAP token be
> first is one of the changes implemented with the batch of security enhancements recently.
>
> Steve
>
>>>> Dan Little <danlittle at yahoo.com> 05/07/09 9:32 PM >>>
>
> Um... why not put the outputformats inside of the map tag?
>
>
> ----- Original Message ----
>> From: David Fuhry <dfuhry at acm.org>
>> To: MapServer Dev Mailing List <mapserver-dev at lists.osgeo.org>
>> Sent: Thursday, May 7, 2009 9:24:09 PM
>> Subject: Re: [mapserver-dev] INCLUDE '...' before MAP gives "Unknown identifier. First token must be MAP..."
>>
>> FYI, the attached ill-advised patch, did work for me as a quick-fix.
>>
>> I commented out the part of the parsers which fails if the the MAP and SYMBOLSET
>> tokens are not yet found.
>>
>> -Dave
>>
>>
>> David Fuhry wrote:
>>> Some recent update seems to have broken the ability to have INCLUDEs in a
>> mapfile before the MAP clause. I normally use an INCLUDE which brings in a
>> bunch of OUTPUTFORMATs, before beginning the MAP tag.
>>> Mapfile:
>>>
>>> INCLUDE "outputformat.map.frag"
>>>
>>> MAP
>>> ...
>>> END
>>>
>>>
>>> gives:
>>>
>>> msLoadMap(): Unknown identifier. First token must be MAP, this doesn't look
>> like a mapfile.
>>> I moved to svn HEAD from a build made a few months ago; it was fine then.
>> Would appreciate a pointer to the bug #, if this problem is known.
>>> -Dave
>>> _______________________________________________
>>> mapserver-dev mailing list
>>> mapserver-dev at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
>
>
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
More information about the mapserver-dev
mailing list