[Geoserver-devel] [JIRA] (GEOS-8300) REST GET resource metadata - file extension can override format parameter

Torben Barsballe created an issue

GeoServer / BugGEOS-8300

REST GET resource metadata - file extension can override format parameter

Issue Type:

BugBug

Affects Versions:

2.12-beta

Assignee:

Unassigned

Components:

REST

Created:

25/Sep/17 11:42 PM

Priority:

MediumMedium

Reporter:

Torben Barsballe

If you make a REST GET request for resource metadata against a resource with a filename that includes an extension that is among the supported configuration formats (xml, html, json), then the filename of the resource will determine the content of the response rather than the format parameter.

For example, the request:

http://localhost:8080/geoserver/rest/resource/styles/point.xml?operation=METADATA&format=json

Will return metadata about the resource point.xml in XML format with content-type=application/json

However, the request

http://localhost:8080/geoserver/rest/resource/styles/point.sld?operation=METADATA&format=json

Will return metadata about the resource point.sld in JSON format, since sld is not a configuration format.

Add Comment

Add Comment

Get JIRA notifications on your phone! Download the JIRA Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100061-sha1:00abb8f)

Atlassian logo