-
Notifications
You must be signed in to change notification settings - Fork 78
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
Externalise PNG validation error messages. #134
Comments
|
Second sheet on the JHOVE errors list: https://docs.google.com/spreadsheets/d/1zyg4eqH6akoehI10fNhzroaW3CgcwUjkNlvvVZvFDyo/edit?ts=57fa9854#gid=450964881 |
|
Thus far, 66 strings have been extracted with source code links form each of the PNG modules. Type, Explanation, Examples, Impact, Cure, Classification still need filling in at time of writing. |
|
Thanks for this, I'll take a look at the module and see what I can do about externalising these in the code a little later today. |
|
I updated this, filled in the type column and added the Constant column |
|
Hi @samalloing and @jacobtakema. I've now assigned this issue to you. To see how this works in practise you can take a look at any of the main JHOVE modules. The ASCII module is a good example. The error messages and assigned ID's are held in a resource file, the ASCII one is here. It's short as there aren't many ASCII module messages. There's an ID and message for each error. There's then a message constant class that loads up the resource errors, the ASCII one is here. This means that there's genuine constants for messages, and if there are any mistakes in IDs they'll be picked up when JHOVE's run, and by basic testing. Finally, to raise the appropriate error see this example: https://github.com/openpreserve/jhove/blob/integration/jhove-modules/ascii-hul/src/main/java/edu/harvard/hul/ois/jhove/module/AsciiModule.java#L159 Any questions just raise them here, good luck. |
jHove hack week contribution of @jacobtakema and @samalloing. Fixes #134
Dev Effort
1D
Description
In order to improve the way that JHOVE reports validation errors we first need move the error messages into a single place. This has currently been done here for the PDF Module. The work is a little painful, but necessary if we're to improve JHOVE's reporting.
The comments at the top of the PDF Constants file. Please talk to @carlwilson if you need more guidance.
The text was updated successfully, but these errors were encountered: