Hi Jukka,
it's just because that issue has been fixed only recently, a few months ago
(see my other mail on the topic).

The uncommon combination is not involving the INSPIRE plugin per se, but
I'm guessing, telling GeoServer
to use "strict OGC compliance", otherwise it would not throw an exception
about the missing version number.

Cheers
Andrea


On Mon, Apr 4, 2022 at 2:50 PM Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi> wrote:

> Hi,
>
>
>
> The GetCapabilities of the fresh Geoserver installation with the demo
> layers
> http://localhost:8080/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities
> do have all the GetLegendGraphics URLs with &VERSION=. For example
> top:states
>
> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink";
> xlink:type="simple" xlink:href="
> http://localhost:8080/geoserver/ows?service=WMS&version=1.3.0&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=topp%3Astates
> "/>
>
>
>
> I wonder if the Inspire extension makes Geoserver to create invalid
> GetLegendGraphics URLs. This Finnish service shows the same issue
> http://kartta.luke.fi/geoserver/inspire/ows?service=wms&version=1.3.0&request=GetCapabilities
>
>
>
> But it is odd if nobody has ever observed that before. Either the WMS
> clients do not really read the GetCapabilities, or nobody is really using
> the Inspire services.
>
>
>
> -Jukka Rahkonen-
>
>
>
>
>
>
>
>
> *Lähettäjä:* Elena Grigoriou <grigoriouel...@gmail.com>
> *Lähetetty:* maanantai 4. huhtikuuta 2022 15.33
> *Vastaanottaja:* Rahkonen Jukka (MML) <jukka.rahko...@maanmittauslaitos.fi
> >
> *Kopio:* geoserver-users@lists.sourceforge.net
> *Aihe:* Re: [Geoserver-users] Geoserver returns an exception as a
> response to a GetLegendGraphic request
>
>
>
> 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
>


-- 

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  333 8128928

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail
_______________________________________________
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

Reply via email to