[Geoserver-devel] [JIRA] (GEOS-11023) GetMap SLD param to external service style document does respect external graphic relative paths

Jody Garnett created an issue

GeoServer / BugGEOS-11023

GetMap SLD param to external service style document does respect external graphic relative paths

Issue Type:

BugBug

Assignee:

Unassigned

Components:

styling, WMS

Created:

12/Jun/23 7:53 AM

Priority:

LowLow

Reporter:

Jody Garnett

This bug report reflects functionality that is not behaving as expected, probably due to not being implemented rather than a failure in the code as written.

When using GeoServer GetMap SLD parameter to work with an external SLD any external graphic references should be relative to the location of the external document.

This can be observed using GeoServer to reference a style hosted by another GeoServer:

However when using this document as a SLD reference in another GeoServer parsing the document fails:
java.net.MalformedURLException: no protocol: grass_fill.png

  • In html parsing terms the document base url should be [https://remote.service.net/geoserver/styles](https://remote.service.net/geoserver/styles) allowing the location of the relative external graphic reference to be maintained.
  • In the extreme case a folder of icons may be setup along side a library of styles resulting in relative paths to be resolved against the SLD document base location.
    https:/styles.remote.net/icons/grass_fill.png
    https:/styles.remote.net/ariculture/grass_poly.png

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225-sha1:956085d)

Atlassian logo