Thank you @OpenDEM1 for your feedback - it is much appreciated.
testing on demo.georchestra.org (cf geoserver - bump to 3.0.0 · Issue #4642 · georchestra/georchestra · GitHub ) we’ve witnessed an issue trying to validate SLD 1.1.0 styles - SLD 1.0.0 styles do validate fine, but 1.1 wont with
org.xml.sax.SAXException: schema_reference: Failed to read schema document 'StyledLayerDescriptor.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property.
i guess this has to do with configuration of the SAX parser in recent geotools changes for security purposes ? to test, one can even try the fixtures for the unit tests in src/main/src/test/java/org/geoserver/catalog/humans.sld , which also fails.
Thanks, I figured out at least one problem.
Schema uses LSResourceResolver, and we check locations with EntityResolver (or EntityResolver2). Our wrapper was not setup to use EntityResolver2 so it was unable to locate some of the xsd files included with GeoServer.
I will test against your humans.sld file to be sure.
thanks, i see [GEOS-12136] Update ResolverToLSResourceResolver to delegate to EntityResolver2 by jodygarnett · Pull Request #9595 · geoserver/geoserver · GitHub now - will try to test it, but we’re facing build issues now in our own branch with customizations.