-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wfs-1.1.0-Transaction-tc1.1- failure occurs on third GetFeaturebyId request in test, but not in browser #89
Comments
Thank you for reporting. @keshav-nangare Can you please do further investigation? |
I have tried to reproduce this issue using the above service but all three tests
|
@sptillma |
I had already run the Insert transaction to place the three new feature in the service, but it appears someone ran the insert again and that is why it contains duplicate features. I have reset the service to the point that none of the three feature are in the GML file. That way the test can be run from the beginning. Again, I will note that the insert works and the first two GetFeature requests work. I am trying to understand why the third one does not. So run the insert again to place the three features in and then you can test any of the GetFeature requests. |
Thank you! @keshav-nangare Can you please repeat the test? |
I have retested the test suite with service and able to reproduce the reported behavior. Following is the result of third test
If you see the validation error message, the schema is expecting the element with Can you please check for the same? |
@keshav-nangare The schema expects @sptillma I also executed the insert statement manually to make reproduction easier. However, I executed the delete statement afterwards. The service returns the following: <?xml version='1.0' encoding='utf-8' ?>
<ogcwfs:FeatureCollection xmlns="http://cite.opengeospatial.org/gmlsf" xmlns:sf="http://cite.opengeospatial.org/gmlsf" xmlns:gml="http://www.opengis.net/gml" xmlns:ogcwfs="http://www.opengis.net/wfs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wfs http://ogc.intergraph.com:80/erdas-apollo/vector/WFSTCITE?REQUEST=DescribeFeatureType&REQUEST=DescribeAllFeatureType&SERVICE=WFS">
<gml:featureMember>
<sf:EntitéGénérique gml:id="cite.gmlsf0-f03">
<gml:description>
Suspendisse in odio sit amet lorem dictum semper. Integer ultrices purus
vel orci. Donec felis massa, suscipit a, lacinia nec, rhoncus vulputate,
tellus.
</gml:description>
<gml:name codeSpace="http://cite.opengeospatial.org/gmlsf">cite.gmlsf0-f03</gml:name>
<sf:str4Property>ghij</sf:str4Property>
</sf:EntitéGénérique>
</gml:featureMember>
</ogcwfs:FeatureCollection> The schema expects the following (path: <xsd:element name="EntitéGénérique" type="sf:EntitéGénériqueType"
substitutionGroup="gml:_Feature">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Simple feature with a generic geometry property that includes characters
outside of the range U+0000..U+007F (Basic Latin). Acceptable geometry
representations include any of the following: gml:Point, gml:LineString,
gml:Curve, gml:Polygon, gml:Surface, gml:MultiPoint, gml:MultiCurve, and
gml:MultiSurface.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="EntitéGénériqueType">
<xsd:complexContent>
<xsd:extension base="gml:AbstractFeatureType">
<xsd:sequence>
<xsd:element name="attribut.Géométrie" type="gml:GeometryPropertyType" />
<xsd:element name="boolProperty" type="xsd:boolean" />
<xsd:element name="str4Property">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="4"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="featureRef" type="xsd:string" minOccurs="0" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType> I realized that several properties added by the insert request are not provided by the GetFeature request. However, this should not cause an erroneous schema validation. When comparing the result of your service and the schema, I do not see any incompatibilities. So, we have to do further investigation why error documented in #89 (comment) occurs. |
@keshav-nangare Can you please check if the error also occurs on a local build (master branch)? |
I have tested the on the local environment with the master branch of test suite and teamengine, still getting the same error. |
For now, we can consider this as a bug. |
attribut.Géométrie and boolProperty are mandatory, they are missing in the response. |
@lgoltz I agree to #89 (comment). |
I'm sorry it has taken me this long to see this, but we are trying to submit our product again after a recent release. Unfortunately, I am still seeing the same problem. |
@sptillma Did you consider following response? #89 (comment) |
I need some information determining if this is a test problem or a software problem. The test does an insert of three features (that is successful). It then validates the response schema (successful). Then the test does three GetFeature request - one for each id that was inserted. The first two are successful, but the third fails with a validation parsing error. However, if I put the same request in the browser, it appears to return a valid response. The request that is failing is:
http://ogc.intergraph.com:80/erdas-apollo/vector/WFSTCITE?&service=WFS&version=1.1.0&request=GetFeature&featureid=cite.gmlsf0-f03
Feel free to test with this as the service now contains the three features added by the insert.
The text was updated successfully, but these errors were encountered: