mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Merge pull request #4387 from eugene7646/zip_archive_fix_4269
Removed a custom Autopsy MIME type as it was causing incorrect MIME type detection
This commit is contained in:
commit
931f0a6401
@ -215,11 +215,15 @@ final class CustomFileTypesManager {
|
||||
signatureList.add(new Signature(byteArray, 522L));
|
||||
fileType = new FileType("image/x-pict", signatureList); //NON-NLS
|
||||
autopsyDefinedFileTypes.add(fileType);
|
||||
|
||||
/* NOTE: see JIRA-4269. This MIME type seems to match a lot of random file types,
|
||||
including ZIP archives. As a result those files get assigned this MIME type instead
|
||||
of having their MIME type detected by Tika.
|
||||
byteArray = DatatypeConverter.parseHexBinary("1100"); //NON-NLS
|
||||
signatureList.clear();
|
||||
signatureList.add(new Signature(byteArray, 522L));
|
||||
fileType = new FileType("image/x-pict", signatureList); //NON-NLS
|
||||
autopsyDefinedFileTypes.add(fileType);
|
||||
autopsyDefinedFileTypes.add(fileType);*/
|
||||
|
||||
/*
|
||||
* Add type for pam.
|
||||
|
Loading…
x
Reference in New Issue
Block a user