gicait / geoserver-rest

Python library for management of geospatial data in GeoServer.
https://geoserver-rest.readthedocs.io
MIT License
191 stars 77 forks source link

Changed order of xml validating vs. opening SLD file path to stop crashes on windows due to file path length #149

Closed iboates closed 3 months ago

iboates commented 3 months ago

Fixes issue identified in https://github.com/gicait/geoserver-rest/issues/147

I only ever tested in a Linux environment where the path length for a file is effectively unlimited, but it will fail in a Windows environment due to a length limit of 254 characters.

iamtekson commented 3 months ago

Thanks @iboates for submitting this PR. Since this is just a very minor change, I am accepting this without testing.