This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch branch_3x
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/branch_3x by this push:
new 211b7fb57f TIKA-4655 - fix grib
211b7fb57f is described below
commit 211b7fb57fe396ea4e42061dda1922be97163d6a
Author: tallison <[email protected]>
AuthorDate: Mon Feb 9 21:24:06 2026 -0500
TIKA-4655 - fix grib
---
.../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"/>