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

WMS tests: GetMetadataURL test failing on PropertyTransferMD_Identifer #74

Open
trophies opened this issue Apr 6, 2017 · 1 comment

Comments

@trophies
Copy link

trophies commented Apr 6, 2017

I'm short on details for this as the test results don't give a lot of details. I'm seeing this error when running the INSPIRE validator against our service implementations:

"Error performing transfer [addMD_IdentiferToList] - Missing source value for ResponseAsXml"

This is failing under the PropertyTransferMD_Identifer test step. The RunGetMetadataForLayer test step is also shown as failing but it gives no error message.

I've noticed a couple of things though: addMD_IdentiferToList has a typo (should be addMD_IdentifierToList), but I'm not sure that would make any difference to how the test runs.

Looking through the code for this test () I noticed this:

<result>AssertionFailures:
{
let $id:=//gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:identifier/gmd:MD_Identifier/gmd:code/gco:CharacterString
return
if (contains('${#Project#datasetIdentifiersList}', $id))
then ""
else concat("the MD_Identifier ",$id," does not exist in the service metadata. The MD_identifier is found in the metadata document at URL: '${#urlToTestEncoded}'. The service metadata refers to these identifiers: '${#Project#datasetIdentifiersList}'")
}

Which shows that it's grabbing the MD_Identifier elements from the metadata. However, all of the references in the View Service Technical Guidance to writing out the identifiers say to use the RS_Identifier element (See section 4.2.3.3.4.5 UNIQUE RESOURCE IDENTIFIER of the View Service TG), so I think it should be checking for that instead. It's still not entirely clear from the error message I'm getting that this is what's causing the issue, but the test should still be checking for the RS_Identifier as specified in the Technical Guidance.

@thijsbrentjens
Copy link
Member

Thanks for reporting. Indeed, it seems that (also)RS_Identifier should be supported. However, this test will probably be removed in a new version.

This test checks if references in metadata to other metadata documents are correct. (Background: in the Netherlands many dataproviders found it difficult to provide (correct) identifiers pointing to the datasets from service metadata and WMS Capabilities. Therefore we created some tests to do checks on the contents of the metadata documents referenced from the Capabilities.)
In the INSPIRE validation workgroup for Abstract Test Suites on metadata and services, this kind of tests will be moved from the View Services tests to a conformance class "Metadata Interoperability", on metadata.

For reference, I think following topics are related:

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

No branches or pull requests

2 participants