Ticket #2521 (closed defect: fixed)
Sending a post request with a content that does not validate against a schema must trigger an exception
| Reported by: | nsavard | Owned by: | tomkralidis |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.2 release |
| Component: | SOS Server | Version: | svn-trunk (development) |
| Severity: | normal | Keywords: | OGC,CITE,SOS 1.0.0 |
| Cc: | assefa, dmorissette |
Description
When a post request is sent to a SOS 1.0.0 server, with a content that does not validate against a schema of a supported operations, must trigger an exception with the code set to InvalidRequest?.
This is a problem similar to bug 2512.
The concerned test is: sos:general-SOS.General-InvalidRequest.1 (s0003)
and the post request is: http://dev1.lan.mapgears.com/manwe/cgi-bin/mssos100_ogc_cite
with the post content: "Test"
The response from server is (using wget): <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>
