[CITE-Forum] Basic WFS - unknown feature identifier

Richard Martell rmartell at galdosinc.com
Fri Jan 8 13:09:41 EST 2016


Ben,

The unknownFeatureIdentifier test expects an empty wfs:FeatureCollection in response because there is no feature with that id. 
The constraint you cite seems to apply if there _is_ a feature with the specified id but its type doesn’t appear in TYPENAMES.

However, your interpretation is not unreasonable (i.e. a "null" feature instance has no type). Perhaps the TYPENAMES param should be dropped from this test and a new test added to cover that particular constraint in cl. 7.9.2.4.1; in fact, there is a method stub for such a test (inconsistentFeatureIdentifierAndType).

--
Richard


-----Original Message-----
From: CITE-Forum [mailto:cite-forum-bounces at lists.opengeospatial.org] On Behalf Of Ben Halstead via CITE-Forum
Sent: Thursday, 07 January, 2016 10:23
To: cite-forum at lists.opengeospatial.org
Subject: [CITE-Forum] Basic WFS - unknown feature identifier

The unknown feature identifier test uses a queryString
service=WFS&version=2.0.0&request=GetFeature&count=10&startindex=0&typenames=ns53:AncWood2&namespaces=xmlns(xml,http://www.w3.org/XML/1998/namespace),xmlns(ns53,http://www.civica_gis.co.uk/namespaces),xmlns(wfs,http://www.opengis.net/wfs/2.0)&resourceid=test-96ae4c59-7854-41a8-bb96-73d23ba63ed8
(for a base url http://gis-csd-01.cloudapp.net/WFS200Test/WFS/WFSHandler.ashx?SERVICE=WFS&Version=2.0.0&REQUEST=GetCapabilities)

To which we return

<ExceptionReport version="2.0.0">
  <Exception exceptionCode="InvalidParameterValue" locator="RESOURCEID">
    <ExceptionText>Typenames exist in the Resource ID that do not exist within the Typename parameter, check the following AncWood2</ExceptionText>
  </Exception>
</ExceptionReport>

The test suite reports
Unexpected HTTP status code. expected [200] but found [400] However, the spec says:
If both the TYPENAMES and RESOURCEID parameters are specified then all the feature instances identified by the RESOURCEIDparameter shall be of the type specified by the TYPENAMES parameter; otherwise the server shall raise anInvalidParameterValue exception (see OGC 06-121r3:2009, Table 25) where the "locator" attribute (see OGC06-121r3:2009, 8.4) value shall be set to "RESOURCEID".

Which would seem to match our response. What is the test expecting ?

Thanks

Ben Halstead


Ben Halstead | Development Manager | Civica UK Limited
Tel: 0845 071 6220
e-mail: ben.halstead at civica.co.uk | http://www.civica.co.uk<http://www.civica.co.uk/>


■ Hull City Council officially signs seven year partnership with Civica... more<https://www.civica.co.uk/articles/860-Hull-City-Council-officially-signs-seven-year-partnership-with-Civica>
■ Exciting Bristol Opportunities... more<https://www.civica.co.uk/articles/859-Exciting-Bristol-Opportunities->
■ Partnership: the foundation of a changing state... more<https://www.civica.co.uk/articles/857-Partnership-the-foundation-of-a-changing-state>

Civica UK Limited<http://www.civica.co.uk/>
-------------------------------------------------------------------------------------------

This e-mail is sent for and on behalf of Civica UK Limited company number 01628868,

Civica Services Limited company number 02374268, or Civica Group Limited company number 04968437.

All companies are registered in England and Wales and each has its registered office at 2 Burston Road, Putney, London, SW15 6AR.

Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone. If you have received this in error please advise the sender by replying to this e-mail immediately highlighting the error and deleting it from your system.



_______________________________________________
CITE-Forum mailing list
CITE-Forum at lists.opengeospatial.org
https://lists.opengeospatial.org/mailman/listinfo/cite-forum


More information about the CITE-Forum mailing list