[Geoserver-devel] [JIRA] (GEOS-8270) Custom legend images in workspaces styles directories are ignored

Gnafu created an issue

GeoServer / BugGEOS-8270

Custom legend images in workspaces styles directories are ignored

Issue Type:

BugBug

Affects Versions:

2.12-beta

Assignee:

Unassigned

Components:

styling, WMS

Created:

05/Sep/17 12:08 PM

Environment:

Amazon Linux AMI 2017.03
GeoServer Version 2.12-SNAPSHOT
Git Revision 5bb2f17d83839deb93bdc89e7742cf4bdf22dbfd
Build Date 04-Sep-2017 08:01
GeoTools Version 18-SNAPSHOT (rev d986f3543609a9235a65025070815c3e0f2d6e69)
GeoWebCache Version 1.12-SNAPSHOT

Priority:

MediumMedium

Reporter:

Gnafu

I’m trying to set a custom legend for a vector layer style.
The style is in a workspace.
Documentation says that “OnlineResource” is “Path to the custom legend graphic to use. Can be a URL or a local path (relative to the style file path).”

I’m using a simple file name as OnlineResource : “preview.png”

If I put the file in /datadir/workspaces/myworkspacename/styles the image is auto-detected and can be previewed.
A call to GetLegendGraphic gives the auto-generated style instead.

If I put the file in /datadir/styles the image is still auto-detected, can be previewed and a call to GetLegendGraphic returns it correctly.

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 (v1000.1254.0#100059-sha1:0a46c0b)

Atlassian logo