Closed robblis closed 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.
@keshav-nangare Can you please do further investigation?
@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:
Can you please help me with the value of the query parameter valuereference
?
@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
?
Hi @dstenger,
When using the valuereference=@gml:id as in the following request.
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.
Thank you for providing the information. However, it still looks like that your server is not configured correctly. Can you please check this?
Hi @dstenger,
We've identified the issue and fixed it on our side.
Thank you for your assistance.
Robert
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