[ 
https://issues.apache.org/jira/browse/TIKA-4655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18057454#comment-18057454
 ] 

Tim Allison commented on TIKA-4655:
-----------------------------------

We can add a check at byte 8 for 1 or 2 (for grib version):  
https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_sect0.shtml


> Fix application/x-grib mimetype determination
> ---------------------------------------------
>
>                 Key: TIKA-4655
>                 URL: https://issues.apache.org/jira/browse/TIKA-4655
>             Project: Tika
>          Issue Type: Improvement
>            Reporter: Laura Delmaestro
>            Priority: Minor
>         Attachments: example_file.txt
>
>
> I 'm opening this ticket to report a possibile weak/bug related to 
> application/x-grib mimetype.
> When calling Tika to determine the mimetype of the attached file, the 
> following mimetype is returned: 
> application/x-grib
> However, the attached file is a simple text file that begins with the letters 
> GRIB.
> Thanks in advance
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to