[MapServer-users] CGI variable "map" fails to validate
Rahkonen Jukka
jukka.rahkonen at maanmittauslaitos.fi
Tue Feb 6 11:50:50 PST 2024
Hi,
This one that is slightly edited from the MS4W config file works for me
MS_MAP_PATTERN "^(C:)?\/ms4w_data\/((?!\.{2})[_A-Za-z0-9\-\.]+\/{1})*([_A-Za-z0-9\-\.]+\.(map))$"
I am not a regexp expert but it seems like a slash must be escaped with a backslash.
-Jukka Rahkonen-
Lähettäjä: MapServer-users <mapserver-users-bounces at lists.osgeo.org> Puolesta Lernout, Matthew via MapServer-users
Lähetetty: tiistai 6. helmikuuta 2024 21.13
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [MapServer-users] CGI variable "map" fails to validate
Hi,
Having trouble making requests since updating to 8.0.1 from 7.6.2.
Mapserver is running in IIS using FastCGI and the configuration steps from: https://mapserver.org/installation/iis.html
A new config file was added to the filesystem and server Environment variables as per documented requirements added since 7.6.3, but having trouble validating any map arguments. All requests return the error "CGI variable "map" fails to validate" even though regexp should pass based on expression tests.
Here is the full config file in use:
CONFIG
ENV
MS_MAP_PATTERN "\.map$"
PROJ_LIB "F:/MapServer/bin/proj7/SHARE"
CURL_CA_BUNDLE "F:\MapServer\bin\curl\curl-ca-bundle.crt"
END
PLUGINS
"mssql" "F:/MapServer/bin/ms/plugins/mssql2008/msplugin_mssql2008.dll"
"oci" "F:/MapServer/bin/ms/plugins/oci/msplugin_oracle.dll"
END
END
The current MS_MAP_PATTERN is just a simplified test to confirm 8.0.1 working before I update to the real regexp, and my understanding is it should map anything that ends in .map? But every map argument I throw in (including verified working arguments for 7.6.2) result in a failure to validate. Are there other crucial configurations missing that are necessary to pass validation?
Thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20240206/76fb40ac/attachment.htm>
More information about the MapServer-users
mailing list