Uploaded image for project: 'GeoServer'
  1. GEOS-8024

Style Editor Preview Legend Fails on non-SLD Styles

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.10.2
    • Fix Version/s: 2.10.3, 2.12-beta, 2.11.1
    • Component/s: web
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sikeoka Steve Ikeoka
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: