Opened 13 years ago

Closed 13 years ago

#3826 closed defect (fixed)

wms_getmap_formatlist causes first defined outputformat to be returned by getmap

Reported by: erigus Owned by: assefa
Priority: normal Milestone: 6.0 release
Component: WMS Server Version: svn-trunk (development)
Severity: normal Keywords:
Cc:

Description

When wms_getmap_formatlist is defined every WMS-Getmap request will return images in the first output format defined in the mapfile. Not the one requested with the format-parameter.

How to reproduce:
Create a WMS service with multiple outputformats
In WEB METADATA add "wms_getmap_formatlist" "image/jpeg,image/png,image/gif"
Request image: ..request=GetMap&format=image/gif
The format returned will be the first defined in the mapfile, not image/gif

in mapwms.c the outputformat is lost at line 694 and default format is used after the test at 816. Adding: format=psFormat; at line 694 seems to fix this.

This is r11522

Change History (3)

comment:1 by assefa, 13 years ago

Owner: changed from mapserverbugs to assefa

comment:2 by assefa, 13 years ago

Milestone: 6.0 release

this should be fixed in r11532

comment:3 by assefa, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.