<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)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Aptos;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"Trebuchet MS";
panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
p.qt-msonormal1, li.qt-msonormal1, div.qt-msonormal1
{mso-style-name:qt-msonormal1;
margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
p.qt-msonormal2, li.qt-msonormal2, div.qt-msonormal2
{mso-style-name:qt-msonormal2;
margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
p.qt-qt-msonormal11, li.qt-qt-msonormal11, div.qt-qt-msonormal11
{mso-style-name:qt-qt-msonormal11;
margin:0cm;
font-size:11.0pt;
font-family:"Aptos",sans-serif;}
span.size
{mso-style-name:size;}
span.font
{mso-style-name:font;}
span.qt-size
{mso-style-name:qt-size;}
span.EmailStyle30
{mso-style-type:personal-reply;
font-family:"Aptos",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;}
/* List Definitions */
@list l0
{mso-list-id:628365553;
mso-list-template-ids:206848886;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:252.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:288.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:324.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">The config file has </span>MS_MAP_PATTERN "." to test. I had MS_MAP_NO_PATH set to true, so only the map files in the Map Key section could be used. But I’ve tried it both ways with the same result. I’ll double-Check
the URL Rewrite.<span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span lang="EN-CA" style="font-size:11.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D">Timothy Pascoe</span></b><b><span lang="EN-CA" style="font-family:"Trebuchet MS",sans-serif;color:#1F497D"><o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:red">Please note the return to our departmental E-mail address below. My Canada.ca address will also continue to work for the time being/Veuillez noter
le retour à notre adresse électronique départementale ci-dessous. </span><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:red">Mon adresse Canada.ca continuera également à fonctionner pour le moment.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D">Environmental Scientist, Water Quality Monitoring & Surveillance<br>
Environment & Climate Change Canada (ECCC)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><a href="mailto:tim.pascoe@ec.gc.ca"><span lang="FR-CA">tim.pascoe@ec.gc.ca</span></a></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">
</span><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">T: 905-336-6239 / C: 289-253-7857<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D">Scientifique de l’environement, Surveillance de la qualité de l'eau</span><span lang="FR-CA" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D">Environnement et Changement climatique Canada (ECCC)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><a href="mailto:tim.pascoe@ec.gc.ca"><span lang="FR-CA">tim.pascoe@ec.gc.ca</span></a></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">
</span><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">T: 905-336-6239 / C: 289-253-7857<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt;color:black"><img border="0" width="372" height="20" style="width:3.875in;height:.2083in" id="Picture_x0020_1460143935" src="cid:image001.gif@01DB7BBC.D1F05BE0" alt="Environment Canada"></span><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><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><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Seth G <sethg@geographika.co.uk>
<br>
<b>Sent:</b> Monday, February 10, 2025 12:51 PM<br>
<b>To:</b> Pascoe,Tim (ECCC) <Tim.Pascoe@ec.gc.ca>; MapServer Users <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> Re: [MapServer-users] Frustrating error: msLoadMap(): Regular expression error. Filename validation failed<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi Tim,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">That error should only occur when the validation of the map= parameter fails.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Did you try MS_MAP_PATTERN "." in the CONFIG?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Do you have any other security settings in the CONFIG such as MS_CONTEXT_BAD_PATTERN or MS_MAP_NO_PATH?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Are there any URL rewrites happening which could affect the map= parameter?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Seth<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div id="sig62266145">
<div>
<p class="MsoNormal">--<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">web:<a href="https://geographika.net/">https://geographika.net</a> & <a href="https://mapserverstudio.net/">https://mapserverstudio.net</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">mastodon: @<a href="mailto:geographika@mastodon.social">geographika@mastodon.social</a><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">On Mon, Feb 10, 2025, at 5:21 PM, Pascoe,Tim (ECCC) wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt;overflow-wrap:break-word" id="qt">
<div>
<p class="qt-msonormal1"><span class="size"><span style="font-size:11.0pt">Seth,</span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span style="font-size:11.0pt"> </span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span style="font-size:11.0pt"> I double-checked the allowPathInfo in my IIS config, and it is set to TRUE already. I tried altering the MAP KEY value, to locate the Map Files in the actual Mapserver
directory, rather than the separate directory the app is configured for. Changing this location resulted in the following error:</span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span style="font-size:11.0pt"> </span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span style="font-size:11.0pt">msCGILoadMap(): Web application error. CGI variable "map" fails to validate.</span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span style="font-size:11.0pt"> </span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span style="font-size:11.0pt">So the Config file is being read, but the validation error is still there, although the message is subtly different.</span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span style="font-size:11.0pt"> </span></span><o:p></o:p></p>
<div>
<p class="qt-msonormal1"><span class="size"><b><span lang="EN-CA" style="font-size:11.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D">Timothy Pascoe</span></b></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span lang="EN-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D"> </span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span lang="EN-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:red">Please note the return to our departmental E-mail address below. My Canada.ca address will also continue to work for the time
being/Veuillez noter le retour à notre adresse électronique départementale ci-dessous.
</span></span><span class="size"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:red">Mon adresse Canada.ca continuera également à fonctionner pour le moment.</span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D"> </span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D">Environmental Scientist, Water Quality Monitoring & Surveillance</span></span><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D"><br>
<span class="size">Environment & Climate Change Canada (ECCC)</span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><a href="mailto:tim.pascoe@ec.gc.ca"><span lang="FR-CA">tim.pascoe@ec.gc.ca</span></a>
</span></span><span class="size"><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">T: 905-336-6239 / C: 289-253-7857</span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"> </span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D">Scientifique de l’environement, Surveillance de la qualité de l'eau</span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D">Environnement et Changement climatique Canada (ECCC)</span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><a href="mailto:tim.pascoe@ec.gc.ca"><span lang="FR-CA">tim.pascoe@ec.gc.ca</span></a>
</span></span><span class="size"><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">T: 905-336-6239 / C: 289-253-7857</span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span class="size"><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"> </span></span><o:p></o:p></p>
<p class="qt-msonormal1"><span lang="EN-CA" style="font-size:11.0pt;color:black"><img border="0" width="372" height="20" style="width:3.875in;height:.2083in" id="qt-Picture_x0020_1073651669" src="cid:image001.gif@01DB7BBC.D1F05BE0" alt="Environment Canada"></span><o:p></o:p></p>
</div>
<p class="qt-msonormal1"><span class="size"><span style="font-size:11.0pt"> </span></span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm;border-right-color:currentcolor;border-bottom-color:currentcolor;border-left-color:currentcolor;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1">
<p class="qt-msonormal1"><span class="size"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b></span><span class="size"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Seth G <<a href="mailto:sethg@geographika.co.uk">sethg@geographika.co.uk</a>>
</span></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><br>
<span class="size"><b>Sent:</b> Friday, February 7, 2025 9:37 AM</span><br>
<span class="size"><b>To:</b> Pascoe,Tim (ECCC) <<a href="mailto:Tim.Pascoe@ec.gc.ca">Tim.Pascoe@ec.gc.ca</a>>; MapServer Users <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>></span><br>
<span class="size"><b>Subject:</b> Re: [MapServer-users] Frustrating error: msLoadMap(): Regular expression error. Filename validation failed</span></span><o:p></o:p></p>
</div>
</div>
<p class="qt-msonormal1"> <o:p></o:p></p>
<div>
<p class="qt-msonormal1">Hi Tim,<o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"> <o:p></o:p></p>
</div>
<div>
<div>
<p class="qt-msonormal1">From <a href="https://mapserver.org/installation/iis.html#troubleshooting">https://mapserver.org/installation/iis.html#troubleshooting</a><o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"> <o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1">The following error is returned (from MapServer 8.0) if <span class="size">
<span style="font-size:11.0pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:1.0pt;background:#F6F6F6">allowPathInfo="false"</span></span> is set in the
<span class="size"><span style="font-size:11.0pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:1.0pt;background:#F6F6F6">handlers</span></span> section for MapServer in the
<span class="size"><span style="font-size:11.0pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:1.0pt;background:#F6F6F6">web.config</span></span> file. This should be set to
<span class="size"><span style="font-size:11.0pt;font-family:Consolas;color:black;border:solid #CCCCCC 1.0pt;padding:1.0pt;background:#F6F6F6">true</span></span>:<o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"> <o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"> msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation failed.<o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"> <o:p></o:p></p>
</div>
</div>
<div>
<p class="qt-msonormal1">You could also try the following in your CONFIG file. Note you'll need to restart IIS to pick up any changes. Also try adding some broken syntax (e.g. CONFIGX) to check the file is being picked up.<o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"> <o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1">CONFIG<o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"> ENV<o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"> MS_MAP_PATTERN "."<o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"> <o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"> <o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1">Seth<o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"> <o:p></o:p></p>
</div>
<div id="qt-sig62266145">
<div>
<p class="qt-msonormal1">--<o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1">web:<a href="https://geographika.net/">https://geographika.net</a> & <a href="https://mapserverstudio.net/">https://mapserverstudio.net</a><o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1">mastodon: @<a href="mailto:geographika@mastodon.social">geographika@mastodon.social</a><o:p></o:p></p>
</div>
</div>
<div>
<p class="qt-msonormal1"> <o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1">On Fri, Feb 7, 2025, at 3:25 PM, Pascoe, Tim (ECCC) via MapServer-users wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt;overflow-wrap:break-word" id="qt-qt">
<div>
<p class="qt-qt-msonormal11">I’m working on porting a development environment to our production server. Using:<o:p></o:p></p>
<p class="qt-qt-msonormal11"> <o:p></o:p></p>
<p class="qt-qt-msonormal11">Mapserver 8.2.2 binaries from GISInternals<o:p></o:p></p>
<p class="qt-qt-msonormal11">IIS 10<o:p></o:p></p>
<p class="qt-qt-msonormal11">Windows Server 2016<o:p></o:p></p>
<p class="qt-qt-msonormal11"> <o:p></o:p></p>
<p class="qt-qt-msonormal11">The permissions are the same on both servers, I have Mapserver set up as a FastCGI module and have the MAPSERVER_CONFIG_FILE Env variable set. I’ve attached the Config file here, but it’s pretty simple, and I can confirm it’s being
read.<o:p></o:p></p>
<p class="qt-qt-msonormal11"> <o:p></o:p></p>
<p class="qt-qt-msonormal11">The error I’m getting is: msLoadMap(): Regular expression error. Filename validation failed<o:p></o:p></p>
<p class="qt-qt-msonormal11"> <o:p></o:p></p>
<p class="qt-qt-msonormal11">I’ve googled this, and only found one other user who seemed to have a similar problem. They never posted a clear solution, and their workaround was to point to the endpoint with no mapserv.exe in the path (just the endpoint), but
had no idea why this worked. It did not work for me, however. What is confusing is that I have no validation for the files. I have a MAPS key set, which works on Development, and have set the MS_MAP_PATTERN to *.* to try and eliminate any validation mistakes.
The map files are ones that have been in use for some time, with no issues. Hitting just the raw endpoint delivers the expected ‘QUERY_STRING is set, but empty. ’but still also includes the Filename validation error.<o:p></o:p></p>
<p class="qt-qt-msonormal11"> <o:p></o:p></p>
<p class="qt-qt-msonormal11">Am I missing a PATH environment variable that is required?<o:p></o:p></p>
<p class="qt-qt-msonormal11">Anyone have any ideas for me to test out?<o:p></o:p></p>
<p class="qt-qt-msonormal11"> <o:p></o:p></p>
<p class="qt-qt-msonormal11"><span class="font"><b><span lang="EN-CA" style="font-family:"Trebuchet MS",sans-serif;color:#1F497D">Timothy Pascoe</span></b></span><o:p></o:p></p>
<p class="qt-qt-msonormal11"><span class="size"><span lang="EN-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D"> </span></span><o:p></o:p></p>
<p class="qt-qt-msonormal11"><span class="size"><span lang="EN-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:red">Please note the return to our departmental E-mail address below. My Canada.ca address will also continue to work for the
time being/Veuillez noter le retour à notre adresse électronique départementale ci-dessous.
</span></span><span class="size"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:red">Mon adresse Canada.ca continuera également à fonctionner pour le moment.</span></span><o:p></o:p></p>
<p class="qt-qt-msonormal11"><span class="size"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D"> </span></span><o:p></o:p></p>
<p class="qt-qt-msonormal11"><span class="size"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D">Environmental Scientist, Water Quality Monitoring & Surveillance</span></span><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D"><br>
<span class="qt-size">Environment & Climate Change Canada (ECCC)</span></span><o:p></o:p></p>
<p class="qt-qt-msonormal11"><span class="size"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><a href="mailto:tim.pascoe@ec.gc.ca"><span lang="FR-CA">tim.pascoe@ec.gc.ca</span></a>
</span></span><span class="size"><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">T: 905-336-6239 / C: 289-253-7857</span></span><o:p></o:p></p>
<p class="qt-qt-msonormal11"><span class="size"><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"> </span></span><o:p></o:p></p>
<p class="qt-qt-msonormal11"><span class="size"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D">Scientifique de l’environement, Surveillance de la qualité de l'eau</span></span><o:p></o:p></p>
<p class="qt-qt-msonormal11"><span class="size"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D">Environnement et Changement climatique Canada (ECCC)</span></span><o:p></o:p></p>
<p class="qt-qt-msonormal11"><span class="size"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><a href="mailto:tim.pascoe@ec.gc.ca"><span lang="FR-CA">tim.pascoe@ec.gc.ca</span></a>
</span></span><span class="size"><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">T: 905-336-6239 / C: 289-253-7857</span></span><o:p></o:p></p>
<p class="qt-qt-msonormal11"><span class="size"><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"> </span></span><o:p></o:p></p>
<p class="qt-qt-msonormal11"><span lang="EN-CA" style="color:black"><img border="0" width="372" height="20" style="width:3.875in;height:.2083in" id="qt-qt-Picture_x0020_1" src="cid:image001.gif@01DB7BBC.D1F05BE0" alt="Environment Canada"></span><o:p></o:p></p>
<p class="qt-qt-msonormal11"> <o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1">_______________________________________________<o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1">MapServer-users mailing list<o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"><a href="mailto:MapServer-users@lists.osgeo.org">MapServer-users@lists.osgeo.org</a><o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"> <o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"> <o:p></o:p></p>
</div>
<div>
<p class="qt-msonormal1"><b>Attachments:</b><o:p></o:p></p>
</div>
<ul style="margin-top:0cm" type="disc">
<li class="qt-msonormal2" style="mso-list:l0 level1 lfo1">mapserver.conf<o:p></o:p></li></ul>
</blockquote>
<div>
<p class="qt-msonormal1"> <o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>