<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=utf-8">
<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;}
@font-face
        {font-family:"Lucida Grande";}
@font-face
        {font-family:Menlo;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.p1, li.p1, div.p1
        {mso-style-name:p1;
        margin:0in;
        margin-bottom:.0001pt;
        background:white;
        font-size:8.5pt;
        font-family:Menlo;
        color:black;}
p.p2, li.p2, div.p2
        {mso-style-name:p2;
        margin:0in;
        margin-bottom:.0001pt;
        background:white;
        font-size:8.5pt;
        font-family:Menlo;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.s1
        {mso-style-name:s1;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">I tried it locally with 7.0.4 and it works as expected. I can switch between a default of 1.1.1 or 1.3.0 easily with that metadata element. I can’t create the exception you’re seeing with the
 metadata regardless of what I set it to – it defaults back to 1.3.0. I can create the exception via URL. Are you sure clients aren’t passing bad versions as opposed to no version?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">--Steve<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt">From:</span></b><span style="font-size:11.0pt"> mapserver-users [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>On Behalf Of </b>Lime, Steve D (MNIT)<br>
<b>Sent:</b> Thursday, May 17, 2018 1:32 PM<br>
<b>To:</b> Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.] <matthew.f.cechini@nasa.gov>; mapserver-users <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> Re: [mapserver-users] Default GetCapabilities Version Not Working<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Hi Matthew: Looking at the code MapServer 7.0 defaults to 1.3.0 already for GetCapabilties requests – you shouldn’t need that line. That said, it should work… --Steve<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt">From:</span></b><span style="font-size:11.0pt"> mapserver-users [<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</a>]
<b>On Behalf Of </b>Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.]<br>
<b>Sent:</b> Wednesday, May 16, 2018 4:22 PM<br>
<b>To:</b> mapserver-users <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>
<b>Subject:</b> [mapserver-users] Default GetCapabilities Version Not Working<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">All,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">   We are running MapServer version 7.0.1 and attempting to use the MAP > WEB > METADATA > wms_getcapabilities_version configuration value to support GetCapabilities requests that do not supply the VERSION
 parameter.  Unfortunately, even if we do add this value to our mapserver configuration file, we continue to see the following service exception.  Any suggestions?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:10.0pt;font-family:"Courier New";color:black">msOWSParseVersionString(): OWS error. Invalid version (). Version must be in the format 'x.y' or 'x.y.z'</span><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>
<p class="MsoNormal"><span style="font-size:11.0pt">   Here is our METADATA block:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="p1" style="margin-left:.5in"><span class="apple-converted-space">  </span>
<span class="s1">WEB</span><o:p></o:p></p>
<p class="p1" style="margin-left:.5in"><span class="apple-converted-space">    </span>
<span class="s1">METADATA</span><o:p></o:p></p>
<p class="p1" style="margin-left:.5in"><span class="apple-converted-space">      </span>
<span class="s1">"wms_enable_request" </span><span class="apple-converted-space">   
</span><span class="s1">"GetMap GetCapabilities"</span><o:p></o:p></p>
<p class="p1" style="margin-left:.5in"><span class="apple-converted-space">      </span>
<span class="s1">"wms_title"</span><span class="apple-converted-space">             
</span><span class="s1">"Some Text"</span><o:p></o:p></p>
<p class="p1" style="margin-left:.5in"><span class="apple-converted-space">      </span>
<span class="s1">"wms_abstract"</span><span class="apple-converted-space">           </span><span class="s1">"Some Text"</span><o:p></o:p></p>
<p class="p1" style="margin-left:.5in"><span class="apple-converted-space">      </span>
<span class="s1">"wms_onlineresource" </span><span class="apple-converted-space">   
</span><span class="s1">"<a href="https://our_url?">https://our_url?</a>"</span><o:p></o:p></p>
<p class="p1" style="margin-left:.5in"><span class="apple-converted-space">      </span>
<span class="s1">"wms_srs"</span><span class="apple-converted-space">               
</span><span class="s1">"epsg:4326"</span><o:p></o:p></p>
<p class="p1" style="margin-left:.5in"><span class="apple-converted-space">      </span>
<span class="s1">"wms_getcapabilities_version"</span><span class="apple-converted-space"> 
</span><span class="s1">"1.3.0"</span><o:p></o:p></p>
<p class="p1" style="margin-left:.5in"><span class="apple-converted-space">      </span>
<span class="s1">"wms_connectiontimeout"</span><span class="apple-converted-space"> 
</span><span class="s1">"180"</span><o:p></o:p></p>
<p class="p1" style="margin-left:.5in"><span class="apple-converted-space">     </span>
<span class="s1">END                  <o:p></o:p></span></p>
<p class="p1" style="margin-left:.5in"><span class="apple-converted-space">  </span><span class="s1">END</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Matt<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black">.................................................................<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Lucida Grande";color:black">Matthew Cechini</span><span style="font-size:10.5pt;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Lucida Grande";color:black">Contractor, Science Systems and Applications, Inc.</span><span style="font-size:10.5pt;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Lucida Grande";color:black">NASA GIBS Systems/Software Engineer</span><span style="font-size:10.5pt;color:black"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Lucida Grande";color:black">410.205.6272</span><o:p></o:p></p>
</div>
</body>
</html>