I've got hundreds of SLDs that I want to update in a geoserver instance. All good for most of them but those that reference images fail to get updated.
<PointSymbolizer> <Graphic> <ExternalGraphic> <OnlineResource xlink:href="symbols/airport.svg"/> <Format>image/svg+xml</Format> </ExternalGraphic> <Size>20</Size> </Graphic> </PointSymbolizer>
I know that the REST api does not support uploading the images but they already exist. If I just paste the sld into web page for the style in geoserver it accepts it and all is good. The problem would appear to be the upload code trying to resolve the link relative to the upload and not the final destination.
The error is
Caused by: java.net.MalformedURLException: no protocol: symbols/airport.svg
Does anyone know a way around this. Manually updating 100s of styles is simply not an option.