Closed karenhanson closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 47.04%. Comparing base (
09cd9c9
) to head (9a8e7cb
). Report is 1 commits behind head on integration.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
We had an EPUB with this value in the content.opf metadata file:
The EPUB module checks for a valid date. In this case, it was pulling in the whitespace around the value and creating an invalid date. This revealed that the Exception resulting from a badly formatted date would cause the report to crash without proper handling. To replicate it, you can edit the content.opf for an EPUB file and replace the date with the one above.
The reason was that the ErrorMessages.properties file was on the wrong path for the EPUB module (it was with the harvard module messages). Most error messages generated by this module are handled in EpubChecker, which is why this wasn't caught previously... but there are a few generated in JhoveRepInfoReport that are handled separately - those were not working.
To fix, I moved the ErrorMessages.properties to the correct location, and also added a trim() to remove the extra whitespace around the date value, since I don't think this should cause a failure. I did not increment any versions for this yet.
Let me know if you need anything else!