digital-preservation / csv-validator

CSV Validation Tool and API (CSV Schema RI)
http://digital-preservation.github.io/csv-validator
Mozilla Public License 2.0
202 stars 54 forks source link

Extend checksum expression to optionally produce warning or error if checksum value is for an empty message #49

Open DavidUnderdown opened 10 years ago

DavidUnderdown commented 10 years ago

The cryptographic hash functions will each produce a consistent hash value when presented with an empty file (or any empty message). This value is different for each hash function, but a given funtion will always produce the same checksum for an empty message.

For the case where we are receiving digitised files a checksum indicating the file is empty would be considered an error, for born digital, it may be admissible, but it would probably be useful for the Digital Preservation to be given the files as a list of warnings to see if there is any case for including the empty files in the accession, of if they should be dropped as not being a record.

DavidUnderdown commented 8 years ago

Not included in 1.1 in the end, milestone updated to 2.0 for now