From 97f94badb45fd9069d33399dc39bbdf2f64ebcd8 Mon Sep 17 00:00:00 2001 From: HarmJ0y Date: Wed, 30 Aug 2023 13:13:01 -0700 Subject: [PATCH] Expanded files processed by Apache Tika -Expanded files processed by Apache Tika --- cmd/enrichment/enrichment/tasks/file_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/enrichment/enrichment/tasks/file_processor.py b/cmd/enrichment/enrichment/tasks/file_processor.py index c58deaa..c3682fb 100644 --- a/cmd/enrichment/enrichment/tasks/file_processor.py +++ b/cmd/enrichment/enrichment/tasks/file_processor.py @@ -551,7 +551,7 @@ class FileProcessor(TaskInterface): doc_is_encrypted = file_data.parsed_data.is_encrypted # If the file extension indicates that plaintext can be extracted through Tika - if tika_compatible and not doc_is_encrypted: + if (tika_compatible or not file_is_binary) and not doc_is_encrypted: try: # use Tika to extract to a new local UUID that references the uploaded Nemesis file text plaintext_file_id = await self.extract_text(file_path_on_disk)