[mapserver-users] CGI Controls - queryfile and pattern validation problem

Olivier Bedel o.bedel at alkante.com
Thu Aug 27 03:46:15 PDT 2009


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.9731624997&
imgext=603029.1235762136+1779885.0319475005+1031002.8072237864+1903874.9731624997&
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.






More information about the MapServer-users mailing list