[mapserver-dev] INCLUDE '...' before MAP gives
"Unknownidentifier. First token must be MAP..."
Steve Lime
Steve.Lime at dnr.state.mn.us
Fri May 8 00:24:02 EDT 2009
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