<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:0cm;
        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.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.p1, li.p1, div.p1
        {mso-style-name:p1;
        margin:0cm;
        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:0cm;
        margin-bottom:.0001pt;
        background:white;
        font-size:8.5pt;
        font-family:Menlo;
        color:black;}
span.Shkpostityyli20
        {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.Shkpostityyli23
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.Shkpostityyli24
        {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: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">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US">Version is a mandatory parameter in all other WMS requests except GetCapabilities so your test seems to lead to correct result.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US">I have never understood why to make GetCapabilities without explicit version number even I do know how the version negotiation is supposed to work. In
 real life I think it gives just pain and I negotiate by trying first the version that I would like to use and if it fails then something else. However, I made a test with our Mapserver 7.0.6 and it seems to work as supposed. If I do not set wms_getcapabilities_version
 at all the following request returns WMS 1.3.0 GetCapabilities which is correct because it is the highest version that Mapserver supports<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US"><a href="https://xxx.yyy.fi/cgi-bin/wms1?service=WMS&request=getcapabilities">https://xxx.yyy.fi/cgi-bin/wms1?service=WMS&request=getcapabilities</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US">However, I can override the default by adding into WEB – METADATA<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US">"wms_getcapabilities_version" "1.1.1"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US">Now GetCapabilities without version returns the WMS 1.1.1 version of the document.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US">There is no need to set "wms_getcapabilities_version" "1.3.0" because that is the default until there is some higher WMS version available but I tested
 also that it does not make any harm.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US">You have Mapserver 7.0.1 while I have 7.0.6. Perhaps that makes the difference.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;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><span lang="EN-US" style="font-size:11.0pt">Lähettäjä:</span></b><span lang="EN-US" style="font-size:11.0pt"> mapserver-users [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>Puolesta </b>Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.]<br>
</span><b><span style="font-size:11.0pt">Lähetetty:</span></b><span style="font-size:11.0pt"> 25. toukokuuta 2018 14:40<br>
<b>Vastaanottaja:</b> steve.lime@state.mn.us<br>
<b>Kopio:</b> mapserver-users <mapserver-users@lists.osgeo.org><br>
<b>Aihe:</b> Re: [mapserver-users] [non-nasa source] 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 lang="EN-US">Steve,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">   For some reason I’m not getting responses through the mailing list… but I did see your responses in the archive…
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">   Digging into this further, it looks like our WMS wrapper is setting “VERSION=” when it invokes mapsever… which is an easy fix.  However, I was also able to reproduce this through direct mapserv command line access. 
 But that gives me a different error and perhaps the default version feature isn’t supported in this use case.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">$> mapserv -nh "QUERY_STRING=LAYERS=MODIS_Fires_All&width=256&height=256&BBOX=-180,-90,180,90&SERVICE=WMS&REQUEST=GetMap&map=/home/user/wms_test/cfg/
 4326.map&TIME=2018144&PRODUCTYEAR=2018&PRODUCTMONTH=05&PRODUCTDAY=24&transparent=trueSRS=EPSG:4326&format=image/png"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black"><ServiceException><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">  msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black"></ServiceException><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Matt</span><span lang="EN-US" style="font-size:11.0pt"><o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:black">.................................................................<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Lucida Grande";color:black">Matthew Cechini</span><span lang="EN-US" style="font-size:10.5pt;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Lucida Grande";color:black">Contractor, Science Systems and Applications, Inc.</span><span lang="EN-US" style="font-size:10.5pt;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Lucida Grande";color:black">NASA GIBS Systems/Software Engineer</span><span lang="EN-US" style="font-size:10.5pt;color:black"><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Lucida Grande";color:black">410.205.6272</span><span lang="EN-US" style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="color:black">From: </span></b><span lang="EN-US" style="color:black">mapserver-users <<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>> on behalf of Matthew
 Cechini <<a href="mailto:matthew.f.cechini@nasa.gov">matthew.f.cechini@nasa.gov</a>><br>
<b>Date: </b>Wednesday, May 16, 2018 at 5:29 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>[non-nasa source] [mapserver-users] Default GetCapabilities Version Not Working<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">All,</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" 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?</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:36.0pt"><span lang="EN-US" 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 lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">   Here is our METADATA block:</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1" style="margin-left:36.0pt"><span class="apple-converted-space"><span lang="EN-US"> 
</span></span><span class="s1"><span lang="EN-US">WEB</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1" style="margin-left:36.0pt"><span class="apple-converted-space"><span lang="EN-US">   
</span></span><span class="s1"><span lang="EN-US">METADATA</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1" style="margin-left:36.0pt"><span class="apple-converted-space"><span lang="EN-US">     
</span></span><span class="s1"><span lang="EN-US">"wms_enable_request" </span></span><span class="apple-converted-space"><span lang="EN-US">   
</span></span><span class="s1"><span lang="EN-US">"GetMap GetCapabilities"</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1" style="margin-left:36.0pt"><span class="apple-converted-space"><span lang="EN-US">     
</span></span><span class="s1"><span lang="EN-US">"wms_title"</span></span><span class="apple-converted-space"><span lang="EN-US">             
</span></span><span class="s1"><span lang="EN-US">"Some Text"</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1" style="margin-left:36.0pt"><span class="apple-converted-space"><span lang="EN-US">     
</span></span><span class="s1"><span lang="EN-US">"wms_abstract"</span></span><span class="apple-converted-space"><span lang="EN-US">           </span></span><span class="s1"><span lang="EN-US">"Some Text"</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1" style="margin-left:36.0pt"><span class="apple-converted-space"><span lang="EN-US">     
</span></span><span class="s1"><span lang="EN-US">"wms_onlineresource" </span></span><span class="apple-converted-space"><span lang="EN-US">   
</span></span><span class="s1"><span lang="EN-US">"<a href="https://our_url?">https://our_url?</a>"</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1" style="margin-left:36.0pt"><span class="apple-converted-space"><span lang="EN-US">     
</span></span><span class="s1"><span lang="EN-US">"wms_srs"</span></span><span class="apple-converted-space"><span lang="EN-US">               
</span></span><span class="s1"><span lang="EN-US">"epsg:4326"</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1" style="margin-left:36.0pt"><span class="apple-converted-space"><span lang="EN-US">     
</span></span><span class="s1"><span lang="EN-US">"wms_getcapabilities_version"</span></span><span class="apple-converted-space"><span lang="EN-US"> 
</span></span><span class="s1"><span lang="EN-US">"1.3.0"</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1" style="margin-left:36.0pt"><span class="apple-converted-space"><span lang="EN-US">     
</span></span><span class="s1"><span lang="EN-US">"wms_connectiontimeout"</span></span><span class="apple-converted-space"><span lang="EN-US"> 
</span></span><span class="s1"><span lang="EN-US">"180"</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1" style="margin-left:36.0pt"><span class="apple-converted-space"><span lang="EN-US">    
</span></span><span class="s1"><span lang="EN-US">END                  </span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1" style="margin-left:36.0pt"><span class="apple-converted-space"><span lang="EN-US">  </span></span><span class="s1"><span lang="EN-US">END</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Thanks,</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Matt</span><span lang="EN-US"><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:black">.................................................................</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Lucida Grande";color:black">Matthew Cechini</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Lucida Grande";color:black">Contractor, Science Systems and Applications, Inc.</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Lucida Grande";color:black">NASA GIBS Systems/Software Engineer</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Lucida Grande";color:black">410.205.6272</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
</body>
</html>