Opened 14 years ago

Last modified 13 years ago

#2513 new defect

A GetCapabilities request sent to a SOS 1.0.0 with an invalid value for the service parameter must trigger an exception

Reported by: nsavard Owned by: tomkralidis
Priority: normal Milestone: 6.0 release
Component: SOS Server Version: svn-trunk (development)
Severity: normal Keywords: OGC, CITE, TEAM, SOS 1.0.0
Cc: sdlimesdlime, warmerdam, assefa, dmorissette

Description

When a GetCapabilities request is sent to a SOS 1.0.0 server with an invalid value for the service, the response must be an exception. The ExceptionReport shall have the 'InvalidParameterValue' exception code; (4) theExceptionReport @locator value shall be that of the invalid parameter.

Actually the following HTML message is output:

<HTML> <HEAD><TITLE>MapServer Message</TITLE></HEAD> <!-- MapServer version 5.1-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE --> <BODY BGCOLOR="#FFFFFF"> mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. </BODY></HTML>

The concerned test is: owsTests:ows-OWS.GetCapabilities-Exceptions.2 (session 0003)

and the request is: http://dev1.lan.mapgears.com/manwe/cgi-bin/mssos100_ogc_cite?service=ASDF&version=1.0.0&request=GetCapabilities

Change History (5)

comment:1 by tomkralidis, 14 years ago

Cc: sdlimesdlime warmerdam assefa dmorissette added; sdlime removed

Same as #2512.

This one is tough. If no SERVICE= is passed, that doesn't necessarily constitute an ExceptionReport, because MapServer offers up CGI mode as well.

CC'ing the other WxS folks on comments here.

comment:2 by warmerdam, 14 years ago

I don't see that we can issue an exception if SERVICE is missing since presumably "traditional" mode is intended. However, the OWSDispatch function could presumably check the SERVICE parameter, and if it is present and not one of the supported protocols it could issue an exception.

comment:3 by tomkralidis, 14 years ago

FYI #2531 should fix this ticket.

comment:4 by tomkralidis, 14 years ago

Milestone: 5.2 release5.4 release

comment:5 by tomkralidis, 13 years ago

Milestone: 5.4 release6.0 release
Note: See TracTickets for help on using tickets.