You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the test files we have encountered have names that cause commons-ip to return a bad code. Here's a demonstration using the same file with two different names:
❯ sha256sum /home/cfw/Downloads/https+==doi,org=10,5281=zenodo,3736.zip /home/cfw/Downloads/goodname.zip
b6cd5ef9bd1ca9d3afb6604c0e6e9222b8c8fc2e2dcb8b297ac650a0c6650a79 /home/cfw/Downloads/https+==doi,org=10,5281=zenodo,3736.zip
b6cd5ef9bd1ca9d3afb6604c0e6e9222b8c8fc2e2dcb8b297ac650a0c6650a79 /home/cfw/Downloads/goodname.zip
❯ java -jar commons-ip/commons-ip2-cli-2.8.0.jar validate -i /home/cfw/Downloads/https+==doi,org=10,5281=zenodo,3736.zip
E-ARK SIP validation report at '/home/cfw/Projects/eArchiving/validation/eark-rest-services/https+==doi_validation-report_2024-11-21.json'
Cannot invoke "picocli.CommandLine$ParseResult.originalArgs()" because the return value of "picocli.CommandLine.getParseResult()" is null
Try 'commons-ip validate --help'for more information.
If you think you've found a bug, please report the log file located in /home/cfw/Projects/eArchiving/validation/eark-rest-services/commons-ip.log.txt to https://github.com/keeps/commons-ip/issues% ❯ echo $?1❯ java -jar commons-ip/commons-ip2-cli-2.8.0.jar validate -i /home/cfw/Downloads/goodname.zipE-ARK SIP validation report at '/home/cfw/Projects/eArchiving/validation/eark-rest-services/goodname.zip_validation-report_2024-11-21.json'❯ echo $?0
In both cases the same JSON report (bar file name details) is produced but the badly name file causes a non zero return status. This in turn snags the automated task that depends on the return status.
The text was updated successfully, but these errors were encountered:
I took a closer look, and the general issue is file names containing the , character. This line splits the -i parameter value using the comma as a delimiter. This causes sipPaths to hold multiple dummy file entries. Here's a quick debug shot: .
The first entry gets processed properly, hence the report gets created but processing the erroneous org=10 entry causes a crash. Given there's already an assignee I'll leave the fix to you.
Some of the test files we have encountered have names that cause commons-ip to return a bad code. Here's a demonstration using the same file with two different names:
In both cases the same JSON report (bar file name details) is produced but the badly name file causes a non zero return status. This in turn snags the automated task that depends on the return status.
The text was updated successfully, but these errors were encountered: