[Geoserver-devel] [JIRA] (GEOS-9489) Invalid <OnlineResource> for external legend graphics accessible over URL/URI in WMS capability document

Imran Rajjad created an issue

GeoServer / BugGEOS-9489

Invalid <OnlineResource> for external legend graphics accessible over URL/URI in WMS capability document

Issue Type:

BugBug

Affects Versions:

2.15.4, 2.16.2

Assignee:

Imran Rajjad

Components:

WMS

Created:

07/Feb/20 6:11 AM

Fix Versions:

2.17-RC, 2.16.3

Priority:

MediumMedium

Reporter:

Imran Rajjad

This bug is related to this External graphic functionality,

https://docs.geoserver.org/latest/en/user/styling/webadmin/index.html#style-editor-data-tab

When configuring a pre-cooked external graphic legend image file available through a URL, URI to local file system (outside GS data directory), the capability document wrongly prefixes the path with Geoserver`s base URL.

<LegendURL width=“20” height=“20”>
<Format>image/png</Format>
<OnlineResource xmlns:xlink=“http://www.w3.org/1999/xlink” xlink:type=“simple” xlink:href=http://localhost:8081/geoserver/wmshttp://external.site/legend.png/>
</LegendURL>

Moreover when a legend image is configured from the data_dir/styles folder, it is directly referenced in the capability document. In production environments these kind of direct URLs to resource are blocked on Webservers.

Ideally the capability document should advertise a general GetLegendGraphic, similar to SLD, so that the nature of legend stays seamless to client and internal to Geoserver.

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#100119-sha1:18795d4)

Atlassian logo