Ticket #1379 (closed defect: fixed)

Opened 8 years ago

Last modified 6 years ago

[WMS Server] Duplicate GetFeatureInfo formats

Reported by: jmckenna@… Owned by: mapserverbugs
Priority: high Milestone:
Component: WMS Server Version: 4.6
Severity: normal Keywords:
Cc:

Description

Testing with MapServer 4.6.0beta3, if i specify the following metadata in my
wms-server mapfile:

   "wms_feature_info_mime_type" "text/plain"

the following is returned by GetCapabilities on this server:

    <GetFeatureInfo>
      <Format>text/plain</Format>
      <Format>text/plain</Format>
      <Format>application/vnd.ogc.gml</Format>

Change History

Changed 8 years ago by dmorissette

Two things need to be done:
1- Avoid the duplicates in capabilities
2- Make sure that the type "wms_feature_info_mime_type" handler takes precedence
over the default text/plain handler

Changed 6 years ago by tomkralidis

  • status changed from new to closed
  • resolution set to fixed

Fixed. mapwms.c now:

- checks if wms_feature_info_mime_type (pszMimeType) exists

  • if it does, check if value is "text/plain"
    • write out text/plain out ONCE either way
Note: See TracTickets for help on using tickets.