Opened 21 years ago

Closed 20 years ago

Last modified 20 years ago

#442 closed defect (fixed)

OGC Cite WFS Test Suite-Invalid typename is not returning an exception

Reported by: nsavard@… Owned by: assefa
Priority: high Milestone: 4.4 release
Component: WFS Server Version: 4.1
Severity: normal Keywords:
Cc:

Description

When a DescribeFeatureType request is made with an invalid TypeName, mapserver
is not returning an exception.

Test path:wfs/1.0.0/basic/describefeaturetype/get/8

Request sent:
http://www2.dmsolutions.ca/cgi-bin/mswfs_ogc_cite?service=WFS&version=1.0.0&typeName=cgf:DummyFeature&request=DescribeFeatureType

Response from mapserver:



Bug found on mapserver 4.0

Change History (11)

comment:1 by nsavard@…, 21 years ago

Version: 4.04.1
This bug was found on mapserver 4.1.

comment:2 by nsavard@…, 21 years ago

Another test case report a similar problem.  So mapserver should take care of
this situation too which is:

When a DescribeFeatureType request is sent with multiple TypeNames and there is
an invalid TypeName, mapserver must send an exception.


comment:3 by nsavard@…, 21 years ago

Test case for a request with multiple TypeName which one of them is invalid is:
 wfs/1.0.0/basic/describefeaturetype/get/9

Request sent:
http://www2.dmsolutions.ca/cgi-bin/mswfs_ogc_cite?service=WFS&version=1.0.0&typeName=cgf:Points,cgf:DummyFeature&request=DescribeFeatureType

URL to find the test:
http://cite.occamlab.com/tsOGC/interface/ViewLog?testid=wfs/1.0.0/basic/describefeaturetype/get/9&ts=0001&sesstype=OGC

comment:4 by assefa, 21 years ago

Resolution: fixed
Status: newclosed
Retruns now an exception.

comment:5 by dmorissette, 21 years ago

Note this was done in V4.1 (CVS)

comment:6 by nsavard@…, 21 years ago

Verified.  Now WFS return an exception if one layer is invalid.  Before closing
this bug, in the case of this test path: 
wfs/1.0.0/basic/describefeaturetype/get/9 where they are two layers which one of
them is invalid, the WFS server return an exception with a message saying that
both layers are invalid layers.  Should the WFS server be more specific and
point out only the invalid layer?

Here is a snippet of the response actually returned by the WFS server:  "WFS
server error. Invalid typename (cgf:Points,cgf:DummyFeature)".  Only the second
layer is invalid.

comment:7 by dmorissette, 21 years ago

Resolution: fixed
Status: closedreopened
Let's reopen the bug to clarify the error message.

comment:8 by dmorissette, 21 years ago

Cc: morissette@… added
Owner: changed from morissette@… to assefa
Status: reopenednew

comment:9 by dmorissette, 20 years ago

Milestone: 4.4 release

comment:10 by assefa, 20 years ago

Resolution: fixed
Status: newclosed
It now returns only the typename that is invalid (without the namespace in 
this case).

comment:11 by nsavard@…, 20 years ago

Verified on Fedora Core 2.
Note: See TracTickets for help on using tickets.