Skip to content
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

Closes #224 #240

Closed
wants to merge 1 commit into from
Closed

Closes #224 #240

wants to merge 1 commit into from

Conversation

bpross-52n
Copy link
Contributor

Closes #224

@dstenger dstenger self-requested a review October 26, 2022 18:04
Copy link
Contributor

@dstenger dstenger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When testing this branch with reference implementation https://cite.deegree.org/deegree-webservices-3.4.30/services/wfs200?service=WFS&request=GetCapabilities, one test is failing three times which was not failing before:
property Is Less Than_match Any | No matching property value found for XPath: xs:dateTime(ns1:legalFoundationDate) lt xs:dateTime('2012-05-11T00:00:00Z').

@bpross-52n Can you please check why this unexpected failure occurs?

@dstenger
Copy link
Contributor

dstenger commented Nov 3, 2022

Decision during CITE meeting 2022-11-03:
One day is added to the filter to make sure that a feature is always returned.

@bpross-52n
Copy link
Contributor Author

bpross-52n commented Nov 10, 2022

The following request to the reference implementation returns no features:

<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs/2.0" count="10" service="WFS"
                version="2.0.0">
   <wfs:Query xmlns:ns79="urn:x-inspire:specification:gmlas:ProtectedSites:3.0"
              typeNames="ns79:ProtectedSite">
      <Filter xmlns="http://www.opengis.net/fes/2.0">
         <PropertyIsLessThan matchAction="All" matchCase="true">
            <Literal>2012-05-13T00:00:00</Literal>
            <ValueReference xmlns:tns="urn:x-inspire:specification:gmlas:ProtectedSites:3.0">tns:legalFoundationDate</ValueReference>
         </PropertyIsLessThan>
      </Filter>
   </wfs:Query>
</wfs:GetFeature>

All the features have a legalFoundationDate of 2012-05-11T00:00:00, so that the features should IMHO be returned. You can check this using the following request:

<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs/2.0" count="20" service="WFS"
                version="2.0.0">
   <wfs:Query xmlns:ns79="urn:x-inspire:specification:gmlas:ProtectedSites:3.0"
              typeNames="ns79:ProtectedSite">
   </wfs:Query>
</wfs:GetFeature>

@dstenger
Copy link
Contributor

Compared test with specs:

Failing test references FilterEncoding spec: ISO 19143: 7.7

When checking the ATS of the WFS 2.0 spec, this test case should be part of test requirement A.2.13 Predicate encoding which is quite generic.

The FilterEncoding spec describes in chapter 7.7 Comparison operators the different types of operators. PropertyIsLessThan is part of the binary comparisons. On the other hand, temporal operators are defined in chapter 7.9 Temporal operators.
As chapter 7.7 just contains mathematical comparisons, temporal comparisons should, as far as I see, not be supported here.

Thus, my conclusion is that PropertyIsLessThan should not work for temporal values.

@dstenger
Copy link
Contributor

@bpross-52n Can you please check if this PR can be closed as the corresponding issue is already closed?

@dstenger
Copy link
Contributor

See #224 (comment) for reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

"property is less than" tests are failing for valid data
2 participants