Merge pull request #5474 from markmckinnon/5656-Extension-mismatch-not-being-detected-in-word-documents

5656-Extension-mismatch-not-being-detected-in-word-documents
This commit is contained in:
Richard Cordovano 2019-12-10 15:09:38 -05:00 committed by GitHub
commit 5f2ad35aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 2 deletions

View File

@ -61,7 +61,25 @@ final class FileExtMismatchDetectorModuleSettings implements IngestModuleIngestJ
"application/exe",
"application/x-dosexec",
"application/x-exe",
"application/x-msdownload").collect(Collectors.toSet());
"application/x-msdownload",
"application/msword",
"application/pdf",
"application/rtf",
"application/vnd.ms-excel",
"application/vnd.ms-powerpoint",
"application/vnd.oasis.opendocument.presentation",
"application/vnd.oasis.opendocument.spreadsheet",
"application/vnd.oasis.opendocument.text",
"application/x-msoffice",
"application/x-ooxml",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.openxmlformats-officedocument.wordprocessingml.template",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/vnd.openxmlformats-officedocument.spreadsheetml.template",
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"application/vnd.openxmlformats-officedocument.presentationml.template",
"application/vnd.openxmlformats-officedocument.presentationml.slideshow"
).collect(Collectors.toSet());
/**
* Constructs an object with the ingest options for the file extension
@ -176,5 +194,5 @@ final class FileExtMismatchDetectorModuleSettings implements IngestModuleIngestJ
versionNumber = 2;
}
}
}

View File

@ -469,4 +469,25 @@
<signature mimetype="video/x-msvideo">
<ext>avi</ext>
</signature>
<signature mimetype="application/vnd.openxmlformats-officedocument.wordprocessingml.document">
<ext>docx</ext>
</signature>
<signature mimetype="application/vnd.openxmlformats-officedocument.wordprocessingml.template">
<ext>dotx</ext>
</signature>
<signature mimetype="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
<ext>xlsx</ext>
</signature>
<signature mimetype="application/vnd.openxmlformats-officedocument.spreadsheetml.template">
<ext>xltx</ext>
</signature>
<signature mimetype="application/vnd.openxmlformats-officedocument.presentationml.presentation">
<ext>pptx</ext>
</signature>
<signature mimetype="application/vnd.openxmlformats-officedocument.presentationml.template">
<ext>potx</ext>
</signature>
<signature mimetype="application/vnd.openxmlformats-officedocument.presentationml.slideshow">
<ext>ppsx</ext>
</signature>
</mismatch_config>