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

MD TG v2.0 C.21: Conformity specification #139

Closed
dartasensi opened this issue Oct 22, 2019 · 9 comments
Closed

MD TG v2.0 C.21: Conformity specification #139

dartasensi opened this issue Oct 22, 2019 · 9 comments
Labels
deployed in reference validator Solution deployed in production

Comments

@dartasensi
Copy link

Hi,

During an analysis of this requirement, I think I found a missed check in the XQuery procedure, that could lead to false negative errors in validation.

The requirement says:
The title shall be given using the gmd:title child element of the citation element with a Non-empty Free Text Element content. For the INSPIRE Implementation Rule documents the value of the title element shall match exactly the official title of the cited document in the language of the metadata.

But the XQuery seems to check only for the presence of the gmd:title element, and no other checks are made on its children (refer to TG Req C.4 about the Free Text element).
https://github.com/inspire-eu-validation/ets-repository/blob/f38e7964888ce37a547ccb2a15966c56aba5a494/metadata/2.0/common/ets-md-common-bsxets.xml#L894

I've altered the reference sample of MD 2.0, introduced the error of empty title.
Tested against the production and staging validator, it wrongly pass the test with SUCCESS.

To reproduce:

Best regards,
Davide Artasensi

@project-bot project-bot bot added this to To do in Validator issues Oct 22, 2019
@danielnavarrogeo
Copy link
Contributor

Dear Davide,

Thank you for your comment. You are right, the test should check that the title is not empty as well.

We will modify the test and let you know when available in staging for testing.

Regards

@project-bot project-bot bot moved this from To do to In progress in Validator issues Oct 23, 2019
@danielnavarrogeo danielnavarrogeo added the ready for testing Solution provided to reporter or developed & deployed in staging (or beta), waiting for testing label Oct 23, 2019
@project-bot project-bot bot moved this from In progress to Available in Staging in Validator issues Oct 23, 2019
@danielnavarrogeo
Copy link
Contributor

Dear Davide,

The test now checks if the title is a non-empty free text. You can try it in the staging environment.

Regards

@dartasensi
Copy link
Author

Thanks, I will try and give you a feedback.

Regards,
Davide

@dartasensi
Copy link
Author

dartasensi commented Oct 28, 2019

Dear Daniel,

after some tests, I found other problems within your fix.
Luckily I traced back your pull request, and I've made some comments about it.
Please, have a look here:
inspire-eu-validation/ets-repository#347

Regards,
Davide

@danielnavarrogeo
Copy link
Contributor

Dear Davide,

The test has been modified according to your suggestions. You can now test it in the staging environment.

Regards

@josemasensio
Copy link
Contributor

Dear @dartasensi,

Does the solution that @danielnavarrogeo provide work?

Best regard.

@juanpelegrina
Copy link
Contributor

Dear @dartasensi

we are planning a release soon and we would like to include this issue on the next milestone. Could you let us know if the solution implemented works as expected?

Regards

@josemasensio josemasensio added this to the v 1.0.8 2019.11 milestone Nov 14, 2019
@josemasensio
Copy link
Contributor

After some internal tests, we checked that everything is working fine, so we will mark as solved this issue.

Best regards.

@josemasensio josemasensio added solved Solution developed and accepted, not yet deployed and removed ready for testing Solution provided to reporter or developed & deployed in staging (or beta), waiting for testing labels Nov 15, 2019
@project-bot project-bot bot moved this from Staging: for acceptance to Staging: in release planning in Validator issues Nov 15, 2019
@MarcoMinghini
Copy link
Contributor

I can confirm that the issue was solved.

@josemasensio josemasensio added deployed in reference validator Solution deployed in production and removed solved Solution developed and accepted, not yet deployed labels Nov 19, 2019
@project-bot project-bot bot moved this from Staging: in release planning to Production: latest release in Validator issues Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed in reference validator Solution deployed in production
Projects
Validator issues
  
Production: latest release
Development

No branches or pull requests

5 participants