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

Uploading SLD's with version 1.1.0 doesn't work through REST interface

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.5.1
    • Fix Version/s: 2.12-beta
    • Component/s: REST
    • Labels:
      None

      Description

      Hi,

      Is it possible that registering a SLD with version 1.1.0 is not possible through the REST interface.

      It's reproducable with curl:

      First try this:

      curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" -d "<style><name>test110_style</name><filename>sld110.sld</filename><sldVersion><version>1.1.0</version></sldVersion></style>" http://localhost:8080/geoserver/rest/styles - http://localhost:8080/geoserver/rest/styles

      -> HTTP 200 Ok

      Then uploading the sld:

      curl -v -u admin:geoserver -XPUT -H "Content-type: application/vnd.ogc.sld+xml" -d @sld110.sld http://localhost:8080/geoserver/rest/styles/test110_style - http://localhost:8080/geoserver/rest/styles/test110_style

      -> Also an HTTP/1.1 200 OK

      Then, when trying to retrieve the sld:

      The answer is:

      < HTTP/1.1 500 Internal Server Error

      The same procedure with a SLD version 1.0.0 works, and through the GUI the 1.1.0 SLD also works.

      Thanks,

      Wouter

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              harrison.grundy codehaus (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: