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

Style API : Unknown style format when charset is in content-type

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 2.12.0
    • Fix Version/s: 2.12.2
    • Component/s: None
    • Labels:
      None

      Description

      When using the REST API /workspaces/<ws>/styles/<s> to edit styles, if the
      content type header contains the charset, e.g. 'application/vnd.ogc.sld+xml;charset=UTF-8', it raises this error :

      org.geoserver.rest.RestException 400 BAD_REQUEST: Unknown style format
      'application/vnd.ogc.sld+xml;charset=UTF-8'
      at
      org.geoserver.rest.catalog.StyleController.stylePut(StyleController.java:446)

      It used to work with GeoServer v2.11.x

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              simon.chatillon Simon Chatillon
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: