Thanks for the bug report - I have gone ahead and added it to the community
issue tracker: https://osgeo-org.atlassian.net/browse/GEOT-5638
There are instructions for reporting bugs on the website here
<http://geoserver.org/issues/> for future use.
One of my co-workers, Alex Goudine, was looking at these kind of preview
issues in the last bug stomp.
One thing I am unsure of is which version of GeoServer you were testing? We
would need to know this in order to reproduce the issue.
--
Jody Garnett
On 8 February 2017 at 14:45, sikeoka <steve.ike...@gdit.com> wrote:
> 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());
>
>
> Also, if a proxy base URL is set that is missing a slash at the end (e.g.,
> "http://geoserver.org/geoserver" instead of
> "http://geoserver.org/geoserver/"), then the Preview Legend would fail for
> external legend images because it would build a URL like
> "http://geoserver.org/geoserverstyles" instead of
> "http://geoserver.org/geoserver/styles".
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.
> nabble.com/Style-Editor-Preview-Legend-Errors-tp5307064.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users