Indeed the version parameter is mandatory! So it seems that geoserver does not form the request according to the standard. Let's see if there is a workaround or any configuration steps to overcome this issue...
On Mon, 4 Apr 2022 at 11:35, Rahkonen Jukka (MML) < jukka.rahko...@maanmittauslaitos.fi> wrote: > Hi, > > > > By what reference the version is optional? I had a look at the “Styled > Layer Descriptor profile of the Web Map Service Implementation > Specification” and there, in Table 9 —GetLegendGraphic operation request > URL parameters the WMS version is defined to be mandatory. > > > GetLegendGraphics works when version is included: > > http://beta.geoportal.ypen.gr/geoserver/aqd-wms/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=AM.AirQualityManagementZone&version=1.3.0 > > > > -Jukka Rahkonen- > > > > *Lähettäjä:* Elena Grigoriou <grigoriouel...@gmail.com> > *Lähetetty:* maanantai 4. huhtikuuta 2022 11.10 > *Vastaanottaja:* geoserver-users@lists.sourceforge.net > *Aihe:* [Geoserver-users] Geoserver returns an exception as a response to > a GetLegendGraphic request > > > > Hi, > > > > I am using Geoserver 2.20.2. > > I have configured various wms. An example is the following: > > > http://beta.geoportal.ypen.gr/geoserver/aqd-wms/ows?service=wms&version=1.3.0&request=GetCapabilities > > > > In the capabilities document, I find the GetLegendGraphic request, which > seems well formed based on the standard. > > The version parameter is missing but it is not mandatory. I think that > Geoserver is supposed to respond using the default version. > > Unfortunately, when I send the request, I get the following ows exception. > > > > <ows:ExceptionText>Could not determine version</ows:ExceptionText> > > > > Has anyone experienced the same behaviour? > > Is it some configuration issue that I am missing? > > > > Thanks in advance. > > > > >
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users