[MS4W-Users] msValidateParameter(): Regular expression error. Parameter pattern validation failed.

TC Haddad tchaddad at gmail.com
Wed Oct 3 11:15:09 EST 2012


This might be more appropriate on the Mapserver list, but I saw a thread in
the MS4W archives from June (
http://lists.maptools.org/pipermail/ms4w-users/2012-June/002024.html) and
wondered if there was ever a solution achieved.

I'm trying to call mapserver CGI like so:

http://localhost/cgi-bin/mapserv.exe?map=test.map&mode=itemquery&qformat=png24&layer=photos&layer=taxlots&qlayer=taxlots&qitem=TLID&qstring=1512274002201&mapext=shape&mapxy=shape&buffer=1500

and I am getting a Regular expression error of:

mapserv(): Web application error. Parameter 'qstring' value fails to
validate. msValidateParameter(): Regular expression error. Parameter
pattern validation failed.

however, I've basically removed any complications (I thought) from the
validation process by testing with:

VALIDATION
  'TLID'      '.'
END

and I still get the mapserver error.

There is no error in the Apache error log. When I enable an MS_ERRORFILE I
get the following in the log:

[Wed Oct 03 09:11:51 2012].62000 msValidateParameter(): Regular expression
error. Parameter pattern validation failed.
[Wed Oct 03 09:11:51 2012].62000 mapserv(): Web application error.
Parameter 'qstring' value fails to validate.

I've successfully used this method in previous years, and in trying to
figure out what had changed I went back and tested previous versions of
MS4W (back to 2.3.1). Same result. So on my end I the only difference I can
think of in my system is the fact that I am on Windows 7, whereas
previously I was on XP.

Any other ideas or obvious things I am not thinking of?

Tanya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20121003/01a6536a/attachment.htm 


More information about the MS4W-Users mailing list