-
Notifications
You must be signed in to change notification settings - Fork 11
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
NullPointerExceptions for several WFS tests #199
Comments
Thank you for reporting. As this issue is related to the WFS 2.0 test suite, I transferred it to the corresponding issue tracker. |
Can you please re-run the test on the OGC CITE Beta environment (https://cite.opengeospatial.org/te2/)? |
@dstenger Thank you for the hint. The behavior is different but still not right in my opinion. The tests fail with these messages The same occurred in the INSPIRE Validator. I don't think they are correct. The data values provided in the data are correct. |
The WFS provides two feature types: SpatialPlan and OfficialDocumentation. The feature type OfficialDocumentation has no temporal property, so it is fine that these tests are skipped.
The "after Instant" test request all features after 2012-04-04T11:39:59.999Z.
The result is an empty feature collection. |
@JohannaOtt |
I agree that in your special case (one feature) the test suite might be improved. |
Findings of analysis: Test suite is sending following request: It returns an empty feature collection. However, if the time window of beginPosition and endPosition is changed, a feature is returned. So, it must be investigated how the ETS decides what beginPosition and endPosition are. |
Problem is probably related to the time zones where the service and TEAM Engine are located. Possible solution: Time range generated by TEAM Engine is increased by adding one day to the endPosition and subtracting one day from the beginPosition. Solution will be checked by CITE TEAM. |
(cherry picked from commit 9bc254278cfc6e60e4edb5fcb0fb509b2d7f4cd9)
(cherry picked from commit 9bc254278cfc6e60e4edb5fcb0fb509b2d7f4cd9) (cherry picked from commit f56525c)
Hi @dstenger Wanted to add some more information that I'm still observing which was posted in issue #185 . Testing the Direct WFS for the Sea Regions theme, I'm seeing generated in the "before Period" test the following GET request. https://inspiredemo.esri.com/arcgis/rest/services/sr_test/MapServer/exts/InspireFeatureDownload/service?service=WFS&version=2.0.0&request=GetFeature&count=10&typenames=ns91:Sea&namespaces=xmlns(xml,http://www.w3.org/XML/1998/namespace),xmlns(ns91,http://inspire.ec.europa.eu/schemas/sr/4.0),xmlns(wfs,http://www.opengis.net/wfs/2.0)&filter=<fes:Filter xmlns:ns91="http://inspire.ec.europa.eu/schemas/sr/4.0" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0">fes:Before<fes:ValueReference xmlns:tns="http://inspire.ec.europa.eu/schemas/sr/4.0">tns:beginLifespanVersion</fes:ValueReference><gml:TimePeriod xmlns:gml="http://www.opengis.net/gml/3.2" frame="http://www.iso.org/iso/iso8601" gml:id="TP01">gml:beginPosition2017-07-12T17:40:00Z</gml:beginPosition>gml:endPosition2017-07-12T18:20:00Z</gml:endPosition></gml:TimePeriod></fes:Before></fes:Filter> If I remove the "Z" zulu reference in the DateTime value, the request returns a record. https://inspiredemo.esri.com/arcgis/rest/services/sr_test/MapServer/exts/InspireFeatureDownload/service?service=WFS&version=2.0.0&request=GetFeature&count=10&typenames=ns91:Sea&namespaces=xmlns(xml,http://www.w3.org/XML/1998/namespace),xmlns(ns91,http://inspire.ec.europa.eu/schemas/sr/4.0),xmlns(wfs,http://www.opengis.net/wfs/2.0)&filter=<fes:Filter xmlns:ns91="http://inspire.ec.europa.eu/schemas/sr/4.0" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0">fes:Before<fes:ValueReference xmlns:tns="http://inspire.ec.europa.eu/schemas/sr/4.0">tns:beginLifespanVersion</fes:ValueReference><gml:TimePeriod xmlns:gml="http://www.opengis.net/gml/3.2" frame="http://www.iso.org/iso/iso8601" gml:id="TP01">gml:beginPosition2017-07-12T17:40:00</gml:beginPosition>gml:endPosition2017-07-12T18:20:00</gml:endPosition></gml:TimePeriod></fes:Before></fes:Filter> So it seems like the URL request generation from the validator is expecting all DateTime values to be in a Zulu format, which in our case, we can't do because the data for our services are in the local time zone of the server the service is running. on. I've attached the test log file. Please let me know if you have any questions. We'll try to keep this service running so you can test. Thanks, |
When validating this WFS with the WFS test class, I get multiple NullPointerExpections, e.g. for Temporal Filter
This is the validation log:
s0003.zip
I originally reported this issue in the INSPIRE Validator GitHub repository, because I got validation error messages from the INSPIRE Validator that I did not understand. The assumption there is that the issue results from the Team Engine Validator, which actually seems to be the case as it is returning NullPointerExcpetions for this test case.
Could you please check why there are NullPointerExceptions and if they actually hint to validation issues or if it is an issue in the Team Engine Validator itself?
The text was updated successfully, but these errors were encountered: