<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.il
        {mso-style-name:il;}
span.Shkpostityyli20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FI" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">This one that is slightly edited from the MS4W config file works for me<br>
<br>
MS_MAP_PATTERN "^(C:)?\/ms4w_data\/((?!\.{2})[_A-Za-z0-9\-\.]+\/{1})*([_A-Za-z0-9\-\.]+\.(map))$"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">I am not a regexp expert but it seems like a slash must be escaped with a backslash.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>Lähettäjä:</b> MapServer-users <mapserver-users-bounces@lists.osgeo.org>
<b>Puolesta </b>Lernout, Matthew via MapServer-users<br>
<b>Lähetetty:</b> tiistai 6. helmikuuta 2024 21.13<br>
<b>Vastaanottaja:</b> mapserver-users@lists.osgeo.org<br>
<b>Aihe:</b> [MapServer-users] CGI variable "map" fails to validate<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222;background:white">Hi,</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222">Having trouble making requests since updating to 8.0.1 from 7.6.2.<br>
<span class="il">Mapserver</span> is running in IIS using FastCGI and the configuration steps from: <a href="https://mapserver.org/installation/iis.html" target="_blank"><span style="font-family:"Calibri",sans-serif;color:#1155CC">https://</span><span class="il"><span style="color:#1155CC;text-decoration:none">mapserver</span></span><span style="font-family:"Calibri",sans-serif;color:#1155CC">.org/installation/iis.html</span></a><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222">A new config file was added to the filesystem and <span class="il">server</span> Environment variables as per documented requirements
 added since 7.6.3, but having trouble validating any <span class="il">map</span> arguments. All requests return the error "CGI variable "<span class="il">map</span>" fails to validate" even though regexp should pass based on expression tests.<br>
<br>
Here is the full config file in use:<br>
<br>
CONFIG<br>
  ENV<br>
    MS_MAP_PATTERN "\.<span class="il">map</span>$"<br>
    PROJ_LIB "F:/<span class="il">MapServer</span>/bin/proj7/SHARE"<br>
    CURL_CA_BUNDLE "F:\<span class="il">MapServer</span>\bin\curl\curl-ca-bundle.crt"<br>
  END<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222"><br>
  PLUGINS<br>
    "mssql" "F:/<span class="il">MapServer</span>/bin/ms/plugins/mssql2008/msplugin_mssql2008.dll"<br>
    "oci" "F:/<span class="il">MapServer</span>/bin/ms/plugins/oci/msplugin_oracle.dll"<br>
  END<br>
END<br>
<br>
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 <span class="il">map</span> anything that ends in .<span class="il">map</span>? But every <span class="il">map</span> 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?<br>
<br>
Thanks,<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222">Matt<o:p></o:p></span></p>
</div>
</body>
</html>