Remote WMS not working because of GetCapabilities issue

Hi there,

Since today, I can no longer use the WMS provided by France IGN as a Remote WMS source in GeoServer (tested on last versions, both Vanilla and Cloud editions).

The GetCapabilities is available here: https://data.geopf.fr/wms-r/wms?SERVICE=WMS&Version=1.3.0&Request=GetCapabilities.

It works very well with QGIS and for the instances where we already had the layers available (but we cannot add new layers).

The only logs I managed to get are:

14 Feb 13:35:17 DEBUG  [data.ows] - FinalURL:https://data.geopf.fr/wms-r?REQUEST=GetCapabilities&VERSION=1.3.0&SERVICE=WMS
14 Feb 13:35:17 DEBUG  [geotools.http] - URL is https://data.geopf.fr/wms-r?REQUEST=GetCapabilities&VERSION=1.3.0&SERVICE=WMS
14 Feb 13:35:17 DEBUG  [geotools.http] - Setting header User-Agent = GeoTools HTTPClient (32.2)
14 Feb 13:35:17 ERROR  [data.ows] - Failed to execute request https://data.geopf.fr/wms-r?REQUEST=GetCapabilities&VERSION=1.3.0&SERVICE=WMS

If you have any idea of what is not parsed correctly by GeoServer, it would be great.

On my machine I get an error about LogoURL:

Caused by: java.lang.ClassCastException: class [Ljava.lang.Object; cannot be cast to class java.net.URL ([Ljava.lang.Object; and java.net.URL are in module java.base of loader ‘bootstrap’) at org.geotools.ows.wms.xml.WMSComplexTypes$_LogoURLType.getValue(WMSComplexTypes.java:3994) at org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:166)

It looks like the Format tag should come before the OnlineResource rather than after it - the URL should also point to an image not the home page but I don’t think we care about that.

I’m not sure how easy it will be to make the parser more lenient, but you should probably open an issue with IGN for the time being and an enhancement request with GeoServer/GeoTools

Ian

Thanks @ianturton !

We will indeed inform them and if we don’t have a reply in time, we will use a static version of the file.

Alexandre

Turns out to be a reasonably easy fix - keep an eye on https://github.com/geotools/geotools/pull/5105 and try out the nightly build tomorrow or Monday to see if it is fixed.

Ian

I can confirm that this fix does allow you to cascade that server, so you could switch to the next nightly if that is easier for you

Ian

Hello Ian,

Thanks for the fix and the test. I tried this morning but I think it wasn’t include in the night build yet.

I will see to have it included in a release of geoserver cloud.

Regards
Alexandre

Le dim. 16 févr. 2025, 11:48, Ian Turton via OSGeo Discourse <noreply@discourse.osgeo.org> a écrit :

ianturton
February 16

I can confirm that this fix does allow you to cascade that server, so you could switch to the next nightly if that is easier for you

Ian


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.