#442 closed defect (fixed)
OGC Cite WFS Test Suite-Invalid typename is not returning an exception
Reported by: | 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:2 by , 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 , 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:6 by , 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 , 21 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Let's reopen the bug to clarify the error message.
comment:8 by , 21 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Status: | reopened → new |
comment:9 by , 20 years ago
Milestone: | → 4.4 release |
---|
comment:10 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
It now returns only the typename that is invalid (without the namespace in this case).
Note:
See TracTickets
for help on using tickets.