Opened 12 years ago

Closed 12 years ago

#4148 closed defect (fixed)

WMS GetFeatureInfo has wrong content-type for info_format=application/vnd.ogc.gml

Reported by: mko Owned by: schpidi
Priority: normal Milestone: 6.2 release
Component: WMS Server Version: svn-trunk (development)
Severity: normal Keywords: info_format
Cc: mko

Description

A WMS GetFeatureInfo request with info_format=application/vnd.ogc.gml will response with Content-Type: text/xml in the Headers. Reffering to the WMS spec, the Content-Type shall be the MIME given with the info_format parameter. (WMS 1.1.1 §7.3.3.6, WMS 1.3.0 §7.4.3.5)

I'm unsure which Content-Type has to be set for info_format=GML and why MapServer sends Conent-Type: application/vnd.ogc.se_xml for WMS 1.1.x.

Attachments (1)

info_format_gml.patch (1.1 KB ) - added by mko 12 years ago.
if content-type would always be application/vnd.ogc.gml

Download all attachments as: .zip

Change History (3)

by mko, 12 years ago

Attachment: info_format_gml.patch added

if content-type would always be application/vnd.ogc.gml

comment:1 by schpidi, 12 years ago

Owner: changed from msogcbugs to schpidi
Status: newassigned

I agree, Conent-Type should have the same value as the info_format parameter for which the allowed values are listed in Format elements in the GetFeatureInfo request description in the GetCapabilities response. Since we advertise application/vnd.ogc.gml this should also be the value of Content-Type.

Adjusted in inspire sandbox with r13040 (and r13039).

comment:2 by schpidi, 12 years ago

Resolution: fixed
Status: assignedclosed

Closing this ticket as the INSPIRE sandbox has been merged to trunk with r13214.

Note: See TracTickets for help on using tickets.