[mapserver-users] CGI Controls - queryfile and pattern validationproblem

Steve Lime Steve.Lime at dnr.state.mn.us
Thu Aug 27 10:57:04 EDT 2009


Query files *must* have the extension .qy. There is no workaround other than to rename
the file.

Steve

>>> On 8/27/2009 at 5:46 AM, in message <4A9663F7.2070807 at alkante.com>, Olivier
Bedel <o.bedel at alkante.com> wrote:
> Hello list,
> 
> I am trying to call mapserv in CGI using NQUERYMAP mode. I would like to use 
> the queryfile parameter but I have difficulties setting the validation 
> pattern on it. My URL call looks like this :
> 
> http://localhost/cgi-bin/mapserv? 
> map=test_postgis.map&
> LAYERS=layer86&
> map_imagetype=png&
> map_transparent=TRUE&
> map_resolution=96&
> mapext=603029.1235762136+1779885.0319475005+1031002.8072237864+1903874.97316
> 24997&
> imgext=603029.1235762136+1779885.0319475005+1031002.8072237864+1903874.97316
> 24997&
> map_size=2464+714&
> imgx=1232&imgy=357&
> imgxy=2464+714&
> mode=nquerymap&
> queryfile=myquery.msv
> 
> And mapserv always complains with the following error :
> 
> msEvalRegex(): Regular expression error. String (myquery.msv) failed 
> expression test.
> 
> I've tried setting validation patterns in the MAP/WEB/METADATA section of 
> the mapfile :
> 
> "TEMPLATEPATTERN" ".*"
> "qstring_validation_pattern" ".*"
> "queryfile_validation_pattern" ".*"
> 
> But none of these patterns resolve the problem...
> 
> Can anyone tell me if CGI queryfile parameter is still supported or if i do 
> something wrong with my patterns ?
> 
> I am using mapserver 5.4.1
> 
> Best regards,
> 
> Olivier.
> 
> 
> 
> _______________________________________________
> 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