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

Metadata indexing / parse resource maintenance date of next update to check that is valid. #8651

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

josegar74
Copy link
Member

Analog to #8598 to parse resource maintenance date of next update to check that is valid, otherwise if the search results return the metadata with the issue, the search response is returned.

Search response error:

java.lang.NullPointerException
	at org.fao.geonet.api.es.EsHTTPProxy.lambda$processResponse$0(EsHTTPProxy.java:696)
	at org.fao.geonet.api.es.JsonStreamUtils.filterTree(JsonStreamUtils.java:147)
	at org.fao.geonet.api.es.JsonStreamUtils.lambda$addInfoToDocs$1(JsonStreamUtils.java:109)
	at org.fao.geonet.api.es.JsonStreamUtils.filterArrayElements(JsonStreamUtils.java:50)
	at org.fao.geonet.api.es.JsonStreamUtils.lambda$addInfoToDocs$2(JsonStreamUtils.java:108)
	at org.fao.geonet.api.es.JsonStreamUtils.filterObjectInPath(JsonStreamUtils.java:74)

Index error of a metadata with invalid resource maintenance date of next update with an invalid date value (2025-02-11):

2025-02-10T14:16:02,494 ERROR [geonetwork.index] - Document with error #be1b1514-8d1f-48e1-9624-fee9b784138c: [1:5095] failed to parse field [maintenance.nextUpdateDate] 
of type [date] in document with id 'be1b1514-8d1f-48e1-9624-fee9b784138c'. Preview of field's value: '(2025-02-11)'.

Resource maintenance indexing was added to 4.4.x in #8293

Checklist

  • I have read the contribution guidelines
  • Pull request provided for main branch, backports managed with label
  • Good housekeeping of code, cleaning up comments, tests, and documentation
  • Clean commit history broken into understandable chucks, avoiding big commits with hundreds of files, cautious of reformatting and whitespace changes
  • Clean commit messages, longer verbose messages are encouraged
  • API Changes are identified in commit messages
  • Testing provided for features or enhancements using automatic tests
  • User documentation provided for new features or enhancements in manual
  • Build documentation provided for development instructions in README.md files
  • Library management using pom.xml dependency management. Update build documentation with intended library use and library tutorials or documentation

@josegar74 josegar74 added this to the 4.4.7 milestone Feb 10, 2025
@josegar74 josegar74 requested a review from fxprunayre February 10, 2025 13:33
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@josegar74 josegar74 merged commit d906f9f into geonetwork:main Feb 12, 2025
6 of 7 checks passed
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

Successfully merging this pull request may close these issues.

3 participants