You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ni...@apache.org on 2020/05/28 06:13:21 UTC

[tika] branch master updated (0bf11ae -> 1140091)

This is an automated email from the ASF dual-hosted git repository.

nick pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git.


    from 0bf11ae  TIKA-2961 Make the CAF mime magic more specific to avoid false positives, by checking for a version number after the "caff" header text
     new e9d62d2  Make the bplist magic more specific where possible, keep version catch-all as now otherwise
     new 1140091  Add glob for Xcode Memgraph files, which are bplist-based

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../resources/org/apache/tika/mime/tika-mimetypes.xml  | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)


[tika] 02/02: Add glob for Xcode Memgraph files, which are bplist-based

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git

commit 114009165410c91b57b91fc4eaddb089a8559451
Author: Nick Burch <ni...@gagravarr.org>
AuthorDate: Thu May 28 07:06:14 2020 +0100

    Add glob for Xcode Memgraph files, which are bplist-based
---
 .../src/main/resources/org/apache/tika/mime/tika-mimetypes.xml     | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
index aad1c39..feaef21 100644
--- a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
+++ b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
@@ -3315,6 +3315,7 @@
       <match value="bplist" type="string" offset="0"/>
     </magic>
   </mime-type>
+
   <mime-type type="application/x-gtar">
     <_comment>GNU tar Compressed File Archive (GNU Tape Archive)</_comment>
     <magic priority="50">
@@ -3866,6 +3867,12 @@
     <glob pattern="*.lzma"/>
   </mime-type>  
 
+  <mime-type type="application/x-memgraph">
+    <_comment>Apple Xcode Memgraph</_comment>
+	  <sub-class-of type="application/x-bplist"/>
+     <glob pattern="*.memgraph"/>
+  </mime-type>
+
   <mime-type type="application/x-mobipocket-ebook">
     <acronym>MOBI</acronym>
     <_comment>Mobipocket Ebook</_comment>


[tika] 01/02: Make the bplist magic more specific where possible, keep version catch-all as now otherwise

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git

commit e9d62d24c19250053aee07a59c9e4de5197f2f42
Author: Nick Burch <ni...@gagravarr.org>
AuthorDate: Thu May 28 07:05:30 2020 +0100

    Make the bplist magic more specific where possible, keep version catch-all as now otherwise
---
 .../main/resources/org/apache/tika/mime/tika-mimetypes.xml    | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
index 7210066..aad1c39 100644
--- a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
+++ b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
@@ -3295,6 +3295,17 @@
   </mime-type>
 
   <mime-type type="application/x-bplist">
+    <!-- Check for well-known bplist versions -->
+    <magic priority="70">
+      <match value="bplist\000\000" type="string" offset="0"/>
+      <match value="bplist\000\001" type="string" offset="0"/>
+      <match value="bplist\100\000" type="string" offset="0"/>
+      <match value="bplist00" type="string" offset="0"/>
+      <match value="bplist01" type="string" offset="0"/>
+      <match value="bplist10" type="string" offset="0"/>
+      <match value="bplist15" type="string" offset="0"/>
+      <match value="bplist16" type="string" offset="0"/>
+    </magic>
     <!-- The priority is 60, as .webarchive files often contain
          (X)HTML content. The bplist magic must trump the XHTML
          magics further within the file. This must also be