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

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


The following commit(s) were added to refs/heads/main by this push:
     new 2c92631c03 TIKA-4655 - fix grib detection (#2601)
2c92631c03 is described below

commit 2c92631c039dbd8d11d68aca334f5daafddd6e55
Author: Tim Allison <[email protected]>
AuthorDate: Mon Feb 9 21:22:17 2026 -0500

    TIKA-4655 - fix grib detection (#2601)
---
 .../src/main/resources/org/apache/tika/mime/tika-mimetypes.xml     | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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 27ccbdb033..d531459614 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
@@ -4162,7 +4162,12 @@
         <_comment>General Regularly-distributed Information in Binary 
form</_comment>
         <tika:link>http://en.wikipedia.org/wiki/GRIB</tika:link>
         <magic priority="50">
-          <match value="GRIB" type="string" offset="0"/>
+          <match value="GRIB" type="string" offset="0">
+            <match value="\x01" type="string" offset="7"/>
+          </match>
+          <match value="GRIB" type="string" offset="0">
+            <match value="\x02" type="string" offset="7"/>
+          </match>
         </magic>
         <glob pattern="*.grb"/>
         <glob pattern="*.grb1"/>

Reply via email to