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 and validation problems related to namespaces #1120

Open
CristinaMSL opened this issue Oct 7, 2024 · 1 comment
Open

WFS and validation problems related to namespaces #1120

CristinaMSL opened this issue Oct 7, 2024 · 1 comment
Assignees
Labels
user-to-fix Problem is present on user side

Comments

@CristinaMSL
Copy link

CristinaMSL commented Oct 7, 2024

We are trying to validate WFS services and we have recurring validation problems related to namespaces. Our service has an INSPIRE namespace with URI http://inspire.company.es. This information is specified in the GetCapabitilies document:

imagen

During the execution of several validation tests of the WFS 2.0 Conformance section, the validator builds URLs specifying a fictitious namespace that we do not know how it calculates.

Example: error validation when requesting a feature that does not exist, the validator sends the request on an unknown namespace that we do not know where it gets it from (ns11 in this example):

service=WFS&version=2.0.0&request=DescribeFeatureType&typename=ns11:Unknown1.Type&namespaces=xmlns(xml,http://www.w3.org/XML/1998/namespace),xmlns(ns11,http://example.org),xmlns(wfs,http://www.opengis.net/wfs/2.0)

And our WFS server returns error as there is no such namespace:

imagen (1)

This error is different from what it would return if the request were pointed to the correct namespace:

service=WFS&version=2.0.0&request=DescribeFeatureType&typename=INSPIRE:Unknown1.Type&namespaces=xmlns(xml,http://www.w3.org/XML/1998/namespace),xmlns(**INSPIRE**,http://inspire.company.es),xmlns(wfs,http://www.opengis.net/wfs/2.0)

imagen (2)

How does the validator calculate that namespace and what information should go in the GetCapabitilies document to make everything correct?

Test run on 10_41 - 04.10.2024 with test suite Conformance Class Direct WFS.html
Test run on 10_41 - 04.10.2024 with test suite Conformance Class Direct WFS.zip (I add the test in zip format in case you can't open the url of the test)

http://inspire.[company.es](http://inspire.company.es./)./

Thank you very much in advance.

@fabiovinci
Copy link
Collaborator

fabiovinci commented Oct 14, 2024

Dear @CristinaMSL,

the request is sent by purpose with a wrong value and the exception should be 'InvalidParameterValue'.

image

Your service replies with a different message:

image

You need to review your service and make the necessary corrections.

@fabiovinci fabiovinci added the user-to-fix Problem is present on user side label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user-to-fix Problem is present on user side
Projects
None yet
Development

No branches or pull requests

2 participants