[Geoserver-devel] [JIRA] (GEOS-8140) GeoServer uses invalid mime type for GML 3.2 responses

Nuno Oliveira created an issue

GeoServer / BugGEOS-8140

GeoServer uses invalid mime type for GML 3.2 responses

Issue Type:

BugBug

Assignee:

Nuno Oliveira

Components:

WFS

Created:

12/May/17 9:09 PM

Priority:

MediumMedium

Reporter:

Nuno Oliveira

GeoServer WFS 2.0 responses encoded in GML 3.2 use “text/xml; subtype=gml/3.2” as mime-type b default. This is an invalid mime-type: http://jersey.576304.n2.nabble.com/Media-type-parse-error-td6445421.html

The mime-type recommended by OGC WFS 2.0 specification is “application/gml+xml; version=3.2”, although some examples in the specification use “text/xml; subtype=gml/3.2” (maybe not updated examples).

GeoServer seems to be aware of the two mime-types (but always use the wrong one):
https://github.com/geoserver/geoserver/blob/master/src/wfs/src/main/java/org/geoserver/wfs/xml/GML32OutputFormat.java#L42-L44

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.962.0#100041-sha1:a380e9a)

Atlassian logo