[Geoserver-devel] [JIRA] (GEOS-7601) Incorrect URL for custom legend graphic

Peter Kovac created an issue

GeoServer / BugGEOS-7601

Incorrect URL for custom legend graphic

Issue Type:

BugBug

Affects Versions:

2.9.0

Assignee:

Unassigned

Components:

Configuration, WMS

Created:

24/Jun/16 12:02 AM

Environment:

  • Apache Tomcat 8.0.30 or embedded Jetty
  • JRE 1.8.0_25

Labels:

legend

Priority:

LowLow

Reporter:

Peter Kovac

WMS Capabilities response contains incorrect URL for GetLegendGraphic request when using custom legend image. It’s missing path to “styles” directory.

Steps to reproduce:

  1. Open the “grass” style in the style editor.
  2. Click on Add legend, type in “grass_fill.png” (file existing in default data_dir/styles).
  3. Click on “Auto-detect image and size” link. All legend fields are auto filled correctly (width and height is 32, format is image/png;charset=UTF-8).
  4. Save the style.
  5. Make a WMS GetCapabilites request and look for the URL of the grass style in tiger:poly_landmarks layer. It’s http://localhost:8080/geoserver/grass_fill.png which is incorrect. The correct link is http://localhost:8080/geoserver/styles/grass_fill.png

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.98.4#100004-sha1:567e5d0)

Atlassian logo