Hi Matthew, The CONFIG file I think is only reloaded when IIS or the Application Pool is restarted, so some changes to the regex may have been ignored. Do you have a sample request with the &map= parameter? Is there anything in a web.config file that could be stripping these out or modifying them?
Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Wed, Feb 7, 2024, at 5:33 PM, Lernout, Matthew via MapServer-users wrote: > MS_MAP_PATTERN '.' also results in the same failed validation error, > which is what makes me think the issue may be with another config > setting. '.' should match any input, right? > > Just to make sure my config file was being loaded, I commented out the > MS_MAP_PATTERN entry entirely, and got the error "msCGILoadMap(): Web > application error. Required configuration value MS_MAP_PATTERN not set." > > Matt > > -----Original Message----- > From: MapServer-users <mapserver-users-boun...@lists.osgeo.org> On > Behalf Of Jörg Thomsen (WhereGroup) via MapServer-users > Sent: Wednesday, February 7, 2024 3:24 AM > To: mapserver-users@lists.osgeo.org > Subject: Re: [MapServer-users] CGI variable "map" fails to validate > > [You don't often get email from mapserver-users@lists.osgeo.org. Learn > why this is important at https://aka.ms/LearnAboutSenderIdentification ] > > Hi, > > I'm not sure whether the pattern is correct. Shouldn't ist start with ^? > > Have yout tried > MS_MAP_PATTERN '.'? (not for production, just as a test) > > Jörg > > Am 06.02.24 um 20:12 schrieb Lernout, Matthew via MapServer-users: >> 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://maps/ >> erver.org%2Finstallation%2Fiis.html&data=05%7C02%7Cmatt.lernout%40stan >> tec.com%7C34322cf56ae745f61ae908dc27b617c5%7C413c6f2c219a469297d3f2b4d >> 80281e7%7C0%7C0%7C638428910243090792%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiM >> C4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C >> &sdata=dh%2BpgGwk5996f0GEMeX7O8rcv5J81TnPzeFNZ9XoVLs%3D&reserved=0 >> <https://map/ >> server.org%2Finstallation%2Fiis.html&data=05%7C02%7Cmatt.lernout%40sta >> ntec.com%7C34322cf56ae745f61ae908dc27b617c5%7C413c6f2c219a469297d3f2b4 >> d80281e7%7C0%7C0%7C638428910243098246%7CUnknown%7CTWFpbGZsb3d8eyJWIjoi >> MC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7 >> C&sdata=OIoWHSlKZJrXWspqwVfY5jhX4lzBcQuI%2Bw5IeOVtXBA%3D&reserved=0> >> >> 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 >> >> >> _______________________________________________ >> MapServer-users mailing list >> MapServer-users@lists.osgeo.org >> https://list/ >> s.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-users&data=05%7C02%7Cmatt >> .lernout%40stantec.com%7C34322cf56ae745f61ae908dc27b617c5%7C413c6f2c21 >> 9a469297d3f2b4d80281e7%7C0%7C0%7C638428910243105153%7CUnknown%7CTWFpbG >> Zsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0% >> 3D%7C0%7C%7C%7C&sdata=c%2BjBl2NTy%2BIZxCYZmp0CLwa2ujlD%2BC%2BfzzIQgXKw >> lyI%3D&reserved=0 > > -- > Viele Grüße, > Jörg Thomsen > > ********************************** > Aufwind durch Wissen! > Web-Seminare und Online-Schulungen > bei der http://www.foss-academy.com/ > ********************************** > > > Jörg Thomsen > WhereGroup GmbH > Bundesallee 23 > 10717 Berlin > Germany > > Tel: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 5130 278 11 > > joerg.thom...@wheregroup.com > http://www.wheregroup.com/ > > Geschäftsführer: > Olaf Knopp, Peter Stamm > Amtsgericht Bonn, HRB 9885 > > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com > > _______________________________________________ > MapServer-users mailing list > MapServer-users@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Caution: This email originated from outside of Stantec. Please take > extra precaution. > > Attention: Ce courriel provient de l'extérieur de Stantec. Veuillez > prendre des précautions supplémentaires. > > Atención: Este correo electrónico proviene de fuera de Stantec. Por > favor, tome precauciones adicionales. > _______________________________________________ > MapServer-users mailing list > MapServer-users@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users