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

WFS 2.0 - invalid GeometryOperand Unexpected HTTP status code #275

Open
CeciliaPH opened this issue Jun 11, 2024 · 3 comments · May be fixed by #278
Open

WFS 2.0 - invalid GeometryOperand Unexpected HTTP status code #275

CeciliaPH opened this issue Jun 11, 2024 · 3 comments · May be fixed by #278
Assignees

Comments

@CeciliaPH
Copy link

CeciliaPH commented Jun 11, 2024

Describe the bug
We are validating our services against your validator and we are getting some errors like:
org.opengis.cite.iso19142.basic.filter.spatial.BBOXTests
invalidGeometryoperand
OGC TEAM Engine reported a failed test: Unexpected HTTP status code.

To Reproduce
We checked our service:
https://www.ign.es/wfs-inspire/unidades-administrativas?request=GetCapabilities&service=WFS

Expected behavior
We would need an specific response or explanation for this error to try to guess a solution.

Additional context
We are not sure if this is the same issue as #247

@dstenger
Copy link
Contributor

dstenger commented Jun 12, 2024

Thank you for reporting.

I can reproduce the behavior and, indeed, the logged request in HTML report returns HTTP status code 403 which is valid for this test.
We will do further investigation.

Workflow of reproducing HTTP Status 403 (using Firefox plugin RESTED):

<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs/2.0" count="10" service="WFS"
                version="2.0.0">
   <wfs:Query xmlns:ns84="http://inspire.ec.europa.eu/schemas/au/4.0"
              typeNames="ns84:AdministrativeUnit">
      <fes:Filter xmlns:fes="http://www.opengis.net/fes/2.0">
         <fes:BBOX>
            <fes:ValueReference xmlns:tns="http://www.opengis.net/gml/3.2">tns:description</fes:ValueReference>
            <gml:Envelope xmlns:gml="http://www.opengis.net/gml/3.2" srsName="urn:ogc:def:crs:EPSG::4258">
               <gml:lowerCorner>27.62 -18.17</gml:lowerCorner>
               <gml:upperCorner>43.8 4.33</gml:upperCorner>
            </gml:Envelope>
         </fes:BBOX>
      </fes:Filter>
   </wfs:Query>
</wfs:GetFeature>

However, the response body is empty which would also lead to a failing test.

Thus, it might be that the response originates from a proxy server and not the application itself.

@bpross-52n
Copy link
Contributor

Thanks, @dstenger. As we discussed internally, I tested with Postman and I get a HTTP 200 response with feature data. Looking at the log, it seems that the Test Suite also receives a HTTP 200 response. The test expects either a HTTP 400 or 403 response.
We will update the error message with the actual HTTP response code for a better understanding.

@bpross-52n bpross-52n linked a pull request Sep 19, 2024 that will close this issue
@bpross-52n
Copy link
Contributor

We enhanced the error message (will be installed on the beta test engine soon: https://cite.ogc.org/te2/). Now, when I test your service, it will report Unexpected HTTP status code. Expected '400' or '403', was '200'. Can you please check why your service responds with a 200 for the request below?

Thank you for reporting.

I can reproduce the behavior and, indeed, the logged request in HTML report returns HTTP status code 403 which is valid for this test. We will do further investigation.

Workflow of reproducing HTTP Status 403 (using Firefox plugin RESTED):

<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs/2.0" count="10" service="WFS"
                version="2.0.0">
   <wfs:Query xmlns:ns84="http://inspire.ec.europa.eu/schemas/au/4.0"
              typeNames="ns84:AdministrativeUnit">
      <fes:Filter xmlns:fes="http://www.opengis.net/fes/2.0">
         <fes:BBOX>
            <fes:ValueReference xmlns:tns="http://www.opengis.net/gml/3.2">tns:description</fes:ValueReference>
            <gml:Envelope xmlns:gml="http://www.opengis.net/gml/3.2" srsName="urn:ogc:def:crs:EPSG::4258">
               <gml:lowerCorner>27.62 -18.17</gml:lowerCorner>
               <gml:upperCorner>43.8 4.33</gml:upperCorner>
            </gml:Envelope>
         </fes:BBOX>
      </fes:Filter>
   </wfs:Query>
</wfs:GetFeature>

However, the response body is empty which would also lead to a failing test.

Thus, it might be that the response originates from a proxy server and not the application itself.

@dstenger dstenger assigned dstenger and unassigned bpross-52n Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To verify
Development

Successfully merging a pull request may close this issue.

3 participants