[Geoserver-devel] [JIRA] (GEOS-8024) Style Editor Preview Legend Fails on non-SLD Styles

Steve Ikeoka created an issue

GeoServer / BugGEOS-8024

Style Editor Preview Legend Fails on non-SLD Styles

Issue Type:

BugBug

Affects Versions:

2.10.2

Assignee:

Unassigned

Components:

web

Created:

09/Mar/17 9:42 PM

Priority:

MediumMedium

Reporter:

Steve Ikeoka

Using the Preview Legend feature on YSLD styles causes an XML parsing error “Content is not allowed in prolog” since org.geoserver.wms.web.data.StyleAdminPanel currently only handles SLD styles:

> StyleInfo si = new StyleInfoImpl(stylePage.getCatalog());
> String styleName = “tmp” + UUID.randomUUID().toString();
> String styleFileName = styleName + “.sld”;
> si.setFilename(styleFileName);
> si.setName(styleName);
> si.setWorkspace(stylePage.styleModel.getObject().getWorkspace());

This was incorrectly reported in the GeoTools JIRA instead of GeoServer:
https://osgeo-org.atlassian.net/browse/GEOT-5638

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.815.1#100035-sha1:b7e3b95)

Atlassian logo