[mapserver-users] Ubuntu 14.04 and Mapserver 6.4.1-2
Lime, Steve D (MNIT)
Steve.Lime at state.mn.us
Mon Jun 2 14:36:21 PDT 2014
The difference is MapServer version, not Ubuntu. You *must* define a validation pattern (a regex) for qstring values. In either the web or layer block (depending on your app) you'd do something like:
VALIDATION
'qstring' '^\/ESD-[0-9]*\/i$'
END
Depends on what sort of values you might see of course. It looks worse than it is because you want to escape (I think) a few special characters. Hope this helps.
Steve
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Haug, Jim
Sent: Monday, June 02, 2014 3:15 PM
To: 'mapserver-users at lists.osgeo.org'
Subject: [mapserver-users] Ubuntu 14.04 and Mapserver 6.4.1-2
I recently upgraded to Ubuntu 14.04 with no visible issues.
The url below is generated in my web page code and is sent to the mapserver:
http://hawken.sdsmt.edu/cgi-bin/mapserv?mode=itemnquery&qformat=png&map=/gisdata/sd/sd_x-printform.map&qlayer=surveys&qitem=archive&qstring=/ESD-0498/i&layer=sites&layer=drg024k_13N&layer=drg024k_14N&layer=drg250k_13N&layer=drg250k_14N&layer=sd_plss&layer=sd_tr&mapsize=480+480&mapext=shape&scaledenom=932875
It worked fine in Ubuntu 13.10 using Mapserver version 6.2.1-3 and generated a map properly. It no longer works in mapserver 6.4.1-2 in Ubuntu 14.04. Now I get the error message
mapserv(): Web application error. Parameter 'qstring' value fails to validate. msValidateParameter(): Regular expression error. Parameter pattern validation failed.
None of my underlying data or map files have changed. I'm completely mystified as to why this is happening. I hope I don't have to revert to Ubuntu 13.10, but I have a backup in case I need to.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140602/f733c6ca/attachment.htm>
More information about the MapServer-users
mailing list