openpreserve / jhove

File validation and characterisation.
http://jhove.openpreservation.org
Other
171 stars 79 forks source link

Issues with JPEG2000 validation - FITS implication #808

Open paul-aloisio opened 1 year ago

paul-aloisio commented 1 year ago

When Jhove encounters and unhandled exception from examining a JPEG2000, the message is: <status>Unknown</status> along with <message severity="error">Validation ended prematurely due to an unhandled exception.</message>

FITS needs to interpret this for valid and well-formed - and chooses true for both. A version of FITS in testing has jpylyzer which correctly identifies these files as invalid, but it would be great if Jhove also assumed it was invalid if there was a severe error.

The issue was reported in a similar way here: https://github.com/openpreserve/jhove/issues/16

and here: https://github.com/openpreserve/jhove/issues/712

carlwilson commented 1 year ago

Hi @paul-aloisio, thanks for reporting this, I'm currently working on the next JHOVE release. I'll take a look at this for next week (9/1), but I agree with the argument. Validity should be asserted with certainty.