[mapserver-users] MapServer 6.4 URL-Problem (Variable-Substitution)

Michael Smith michael.smith.erdc at gmail.com
Fri Sep 7 07:28:36 PDT 2018


Mike,

 

In version 6 and above, you need to add a validation block for each substitution variable. 

 

https://mapserver.org/mapfile/validation.html

 

Mike

 

 

-- 

Michael Smith

Remote Sensing/GIS Center

US Army Corps of Engineers

 

 

From: mapserver-users <mapserver-users-bounces at lists.osgeo.org> on behalf of "Elstermann, Mike" <Mike.Elstermann at itc-halle.de>
Date: Friday, September 7, 2018 at 10:16 AM
To: "'mapserver-users at lists.osgeo.org'" <mapserver-users at lists.osgeo.org>
Subject: [mapserver-users] MapServer 6.4 URL-Problem (Variable-Substitution)

 

My problem in URLs with Variable-Substitution:

 
http://myserver?...&druckvorschauclass='[bez]'='A1' OR '[bez]'='1:500'&… à correct Output (Map-Picture)
http://myserver?...&druckvorschauclass=%27%5Bbez%5D%27%3D%27A1%27%20OR%20%27%5Bbez%5D%27%3D%271%3A500%27&… à incorrect Output (NO Map-Picture)
Error-Message: msValidateParameter(): Regular expression error. Parameter pattern validation failed.
 

In my MapFile:

CLASS

…

EXPRESSION (%druckvorschauclass%)

                …

                END

 

Using MapServer 6.4 (in 5.x it was OK)

 

Any ideas?

 

THX!

mikeE.

 

_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20180907/5846ad0b/attachment.html>


More information about the mapserver-users mailing list