-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
Standard / ISO19115-3 / Batch edit may trigger error on creation date #7712
Conversation
This should not happen when records are created using the editor but importing a record with no creation date and then directly applying a batch editing (which does not update dates) will trigger the following error: ``` "; SystemID: file://web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19115-3.2018/update-fixed-info.xsl; Line#: 134; An empty sequence is not allowed as the first argument of gn-fn-iso19115-3.2018:write-date-or-dateTime() ``` Avoiding that case.
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code change make sense to me, but the test case is not really working for me. Maybe not doing the steps properly:
- Created an ISO19115-3 metadata and exported to XML
- Edited locally and removed the creation date and assigned a new UUID
- Import the metadata --> the new metadata gets a creation date
- Batch editing adding a keyword works as expected.
I did these steps without the changes, to try to reproduce the issue.
can you try batch editing with this?
The error is not happening if the batch editing does nothing ie. Records unchanged |
@fxprunayre with the PR the error is triggered, I guess that is not what is expected, correct?
Attached the metadata used. |
This is related to you record not having a revision date (creation date error was fixed) - which should not happen usually. I added a check for this case too. |
Quality Gate passedIssues Measures |
This should not happen when records are created using the editor but importing a record with no creation date and then directly applying a batch editing (which does not update dates) will trigger the following error:
Avoiding that case.
Checklist
main
branch, backports managed with labelREADME.md
filespom.xml
dependency management. Update build documentation with intended library use and library tutorials or documentationFunded by Ifremer