-
Notifications
You must be signed in to change notification settings - Fork 23
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
INSPIRE VS: schema validation fails if capabilities contains additional operations or extended capabilities #438
Comments
Dear @lgoltz Sorry for the delay, we are discussing internally the correct application of the schema. Validating it with Oxygen, the XML seems to be correct, so we are looking into the usage of the schemas by the validator. |
Dear @carlospzurita Isnt't it related to the way this https://github.com/inspire-eu-validation/community/issues/398 is tried to be fixed? Before implementing https://github.com/inspire-eu-validation/community/issues/398 please ensure that the conclusions are correct. |
We are seeing a different message for what I believe may be the same problem:
In our case a namespace is used correctly in the capabilities response and imported in a referenced XSD ( (Unfortunately the two issues @iuriemaxim references cannot be accessed anymore, so I can't tell if this has been discussed before.) A solution would be much appreciated! |
Thank you @iuriemaxim, that is very helpful!
|
Even if the 191 is refering to WFS, the schema location is for all services, so for WMS as well. So all incidents 492, 191 and 201 could be still relevant, |
Hello @dperezBM, |
@carlospzurita @fabiovinci @dperezBM I would like to double that. I get the error message @lgoltz reported (for the |
@carlospzurita @fabiovinci @dperezBM How is the current state here? |
Dear @JohannaOtt, your service fails the The Validator uses for this test the fixed INSPIRE schema (https://inspire.ec.europa.eu/schemas/inspire_vs/1.0/inspire_vs.xsd) in which we added an additional OGC schema in the release 2022.2 (http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd). We will evaluate if it is correct to add additional "proprietary" schemas to the |
Dear @fabiovinci,
Do you have any news concerning this ? Best regards; |
Dear @fabiovinci For example some processing services (WPS) will malfunction, as they are also parsing the capabilities of the services before processing one or more services altogether. This will lead to a limitation in using the services from INSPIRE infrastructure, which is not inline with the principles of INSPIRE Directive. INSPIRE is not just about data, but especially about services. Services are described by their capabilities. Ensuring interoperability at the level of the services means also ensuring the interoperability of capabilities of the services. Custom extension of the description of the capabilities of the services by data providers has a simllar effect to the service interoperability as the custom extension of the codelists has to the interoperability of the data. Best regards, |
Dear @fabiovinci ,
Any news related to this? Can we expect a change in the validator? All the best |
@fabiovinci Are there any news on that? |
Dear all, we further discussed the issue internally and decided not to implement the first option (i.e. to add additional "proprietary" schemas to the inspire_vs.xsd) as it is not formally correct. So, we are investigating how to implement the second proposed solution (i.e. to validate the GetCapabilities document against the schemas declared in the document itself after verifying that the inspire_vs.xsd schema is present in one of the schemaLocation attributes). |
@fabiovinci |
Hi @fabiovinci, Have you made a decision regarding the implementation of the second option? Is the issue currently in the pipeline? Thank you |
Hi @emanuelaepure10, we are working on the integration of the Good Practice "Data and Service Linking Simplification" (all the details are in this discussion) that will require an update of the ATS/ETS for View Service, so the changes could have an impact on this issue. |
Hi, Is there any update on this issue. Since there has been some progress on the implementation on the Good Practice "Data and Service Linking Simplification". Thanks for the update. |
Dear @skornsekj, only Part A of the Good Practice has been implemented at the moment, a solution to this issue will be provided with the implementation of Part B which will be done in the coming months. |
Dear all, this issue should now be solved due to the changes introduced for the integration of the data-service linking simplification for WMS (See related issue #1098). The validator "validates the document against XML schemas declared in the schemaLocation attribute". (See updated ATS at04) The solution is available in the staging instance. |
Dear @lgoltz, your WMS service should now be valid since the new release of the validator uses the schemas declared in the capabilities document. In any case, it seems that the schema declared in the |
Dear @fabiovinci, Thanks for the update. Please, you provide the URL of the staging instance. I've never used that environment. Thanks! |
The fix is now available in the production instance. |
Dear all, we internally tested the fix and it works fine so we will close the issue. Please reopen the issue or open a new one if the error persists. |
schema validation fails if capabilities contains additional operations or extended capabilities
Test run: https://inspire.ec.europa.eu/validator/v2/TestRuns/EIDb0da69f6-a29c-495d-99fb-52e868f1a919.html
Service: https://www.geoseaportal.de/inspire/services/MU_INSPIRE_VS?service=WMS&request=GetCapabilities
The test GetCapabilities_Operation -> at04-getcapabilities-xml-schema-validation -> check-xml-schema-valid (https://inspire.ec.europa.eu/validator//v2/TestRuns/EIDb0da69f6-a29c-495d-99fb-52e868f1a919.html?lang=de#EID9805ecd3-0175-1000-1742-8c6844ab7f3d) fails with:
Schema not valid: [org.xml.sax.SAXException: Fatal error: org.xml.sax.SAXParseException; lineNumber: 94; columnNumber: 32; cvc-complex-type.2.4.a: Invalid content was found starting with element 'sld:GetLegendGraphic'. One of '{"http://www.opengis.net/wms":_ExtendedOperation}' is expected. Response did not validate against schema 'http://inspire.ec.europa.eu/schemas/inspire_vs/1.0/inspire_vs.xsd'.]
Validation of the capabilities document is successful with other xml schema validations. It seems that the xsi:schemaLocation in the root element is not evaluated.
The same applies to the element soapwms:ExtendedCapabilities, the xsi:schemaLocation is located at this element, not the root document.
The text was updated successfully, but these errors were encountered: