keeps / commons-ip

Commons IP is project that provide a command-line tool and Java Library to validate and manipulate E-ARK Information Packages, so to create or process E-ARK SIP and AIP and also validate them against official specifications.
http://keeps.github.io/commons-ip/
GNU Lesser General Public License v3.0
11 stars 14 forks source link

Incomplete IANA mime types list #277

Closed milvld closed 1 month ago

milvld commented 5 months ago

Hi

I am using the validator function to validate a SIP that contains film specific data such as .dpx files. However, since the list of mime types doesn't contain this format, the validator says it fails the CSIP68 requirement (as demonstrated below).

{ "specification" : "CSIP-2.1.0", "id" : "CSIP68", "name" : "File mimetype", "location" : "mets/fileSec/fileGrp/file/@MIMETYPE", "description" : "The IANA mime type for the referenced file.", "cardinality" : "1..1", "level" : "MUST", "testing" : { "outcome" : "FAILED", "issues" : [ "Value image/dpx in uuid-8d162599-705e-4e1a-894b-a9ed84724167/representations/uuid-b78b075b-f40c-4402-865c-2d7f0c5ab59b/METS.xml for mets/fileSec/fileGrp/file/@MIMETYPE value isn't valid" ], "warnings" : [ ], "notes" : [ ] } }

An up-to-date list seems to be available here on the IANA website. However, that one doesn't contain mime types that are not yet recognized by IANA (indicated by the x- in there name, e.g. image/x-dpx), so I don't know what the best way would be to add those.

luis100 commented 1 month ago

Please check out these instructions: https://github.com/keeps/commons-ip?tab=readme-ov-file#iana-media-types