opengeospatial / ets-wfs20

Executable Test Suite for WFS 2.0
Other
9 stars 11 forks source link

AM Theme Direct WFS GetProperty Request Fails with Generated Request #186

Closed robblis closed 3 years ago

robblis commented 3 years ago

We're running a Direct WFS Test against the AM theme.

It fails with the following: OGC TEAM Engine reported a failed test: Node has unexpected [local name] value. expected [ValueCollection] but found [ExceptionReport]

The following is the request that was generated.

service=WFS&version=2.0.0&request=GetPropertyValue&count=100&typenames=ns67:ManagementRestrictionOrRegulationZone&namespaces=xmlns(xml,http://www.w3.org/XML/1998/namespace),xmlns(gml,http://www.opengis.net/gml/3.2),xmlns(ns67,http://inspire.ec.europa.eu/schemas/am/4.0),xmlns(wfs,http://www.opengis.net/wfs/2.0)&valuereference=@gml:id

However, if I add the namespace and feature in front of the "@gml:id", shown in the request below, I do get a returned valueCollection.

service=WFS&version=2.0.0&request=GetPropertyValue&count=100&typenames=ns67:ManagementRestrictionOrRegulationZone&namespaces=xmlns(xml,http://www.w3.org/XML/1998/namespace),xmlns(gml,http://www.opengis.net/gml/3.2),xmlns(ns67,http://inspire.ec.europa.eu/schemas/am/4.0),xmlns(wfs,http://www.opengis.net/wfs/2.0)&valuereference=**ns67:ManagementRestrictionOrRegulationZone**@gml:id

We're not sure what is the solution for this.

I've attached the GetCapabilities xml file.

Thanks for any help provided.

AM_GetCapabilities.zip

dstenger commented 3 years ago

Thank you for reporting.

@robblis We transferred this issue to the ets-wfs20 issue tracker as it relates to the WFS 2.0 test suite.

dstenger commented 3 years ago

@keshav-nangare Can you please do further investigation?

keshavnangare commented 3 years ago

@dstenger

The current implementation sends the request with a hardcoded query parameter as valuereference=@gml:id. I referred the documentation and attached for your reference as below:

image

Can you please help me with the value of the query parameter valuereference?

dstenger commented 3 years ago

@robblis @gml:id is a valid XPath. Thus, it should work as a value for query parameter valuereference. So, we assume that the error can be located on the server side. What is the exact response of your server when using valuereference=@gml:id?

robblis commented 3 years ago

Hi @dstenger,

When using the valuereference=@gml:id as in the following request.

http://agsinspire1.esri.com/arcgis/rest/services/AMTest/MapServer/exts/InspireFeatureDownload/service?service=WFS&version=2.0.0&request=GetPropertyValue&count=100&typenames=ns67:ManagementRestrictionOrRegulationZone&namespaces=xmlns(xml,http://www.w3.org/XML/1998/namespace),xmlns(gml,http://www.opengis.net/gml/3.2),xmlns(ns67,http://inspire.ec.europa.eu/schemas/am/4.0),xmlns(wfs,http://www.opengis.net/wfs/2.0)&valuereference=@gml:id

We get the following exception

Internal Server Error The mapping of PropertyName "@gml:id" to the SQL schema is configured incorrectly in step "am:ManagementRestrictionOrRegulationZone". The gml:id attribute cannot be mapped.

dstenger commented 3 years ago

Thank you for providing the information. However, it still looks like that your server is not configured correctly. Can you please check this?

robblis commented 3 years ago

Hi @dstenger,

We've identified the issue and fixed it on our side.

Thank you for your assistance.

Robert