issues
search
openpreserve
/
odf-validator
Open source Open Document Format (ODF) validation
http://odf.openpreservation.org/
BSD 3-Clause "New" or "Revised" License
3
stars
0
forks
source link
FEAT: Package mimetype entry validation
#23
Closed
carlwilson
closed
1 year ago
carlwilson
commented
1 year ago
added checks to ensure that the
mimetype
entry in the package is valid:
the OpenDocument package should contain a
mimetype
file;
the
mimetype
entry must be the first entry in the package;
the
mimetype
entry must be uncompressed;
the
mimetype
entry must be ASCII encoded; and
the
mimetype
entry must not contain extra fields;
see
https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part2-packages/OpenDocument-v1.3-os-part2-packages.html#MIME_type_stream
for details;
fixed a few minor compiler warnings; and
still missing the validation of consistency with
manifest.xml
.
mimetype
entry in the package is valid:mimetype
file;mimetype
entry must be the first entry in the package;mimetype
entry must be uncompressed;mimetype
entry must be ASCII encoded; andmimetype
entry must not contain extra fields;manifest.xml
.