Opened 12 years ago

Closed 12 years ago

#2253 closed defect (invalid)

Response to a WMS getcapabilities version 1.1.0 request doesn't contain the GetLegendGraphic and GetStyles anymore

Reported by: nsavard Owned by: mapserverbugs
Priority: normal Milestone: 5.0 release
Component: WMS Server Version: 5.0
Severity: normal Keywords:
Cc: tomkralidis

Description

I issue the following request to MapServer 5.0.0-beta4 through msautotest but the GetLegendGraphic? and GetStyles? were not in the response as opposed to the previous version of MapServer. Does someone know why or can confirm that it's a correct answer?

QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.1& REQUEST=GetCapabilities?"

MapServer version 5.0.0-beta4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

Change History (8)

comment:1 in reply to:  description Changed 12 years ago by tomkralidis

Cc: tomkralidis added

Replying to nsavard:

Correct. See r6660. Only the 1.1.1 DTD allows for these elements. No previous DTD.

A 1.1.1 GetCapabilities request SHOULD give you back these elements. I just tried against trunk and can confirm this.

Alot of the msautotest/wxs tests use 1.1.0 as the version; you may want to check this.

comment:2 Changed 12 years ago by dmorissette

Perhaps it would be a good idea to have tests for both 1.1.0 and 1.1.1 if that's not already the case.

comment:3 Changed 12 years ago by nsavard

I made an error in the description of the ticket. The version was 1.1.0 and not 1.1.1. The request was:

QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0& REQUEST=GetCapabilities??"

comment:4 in reply to:  2 Changed 12 years ago by nsavard

Replying to dmorissette:

Perhaps it would be a good idea to have tests for both 1.1.0 and 1.1.1 if that's not already the case.

Good idea. I'll do that.

comment:5 Changed 12 years ago by tomkralidis

Normand: this is the expected behaviour.

comment:6 Changed 12 years ago by tomkralidis

Can we close this one?

comment:7 in reply to:  6 Changed 12 years ago by nsavard

Replying to tomkralidis:

Can we close this one?

Yes.

comment:8 Changed 12 years ago by tomkralidis

Resolution: invalid
Status: newclosed

Closing as invalid as this is the expected behaviour according to the WMS spec.

Note: See TracTickets for help on using tickets.