View Issue Details

IDProjectCategoryView StatusLast Update
0000539fileGeneralpublic2024-11-10 17:05
Reportermanfredsc Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Fixed in VersionHEAD 
Summary0000539: New IANA entry for GRIB
DescriptionThere is now an official entry for GRIB at IANA:
https://www.iana.org/assignments/media-types/application/grib

Somewhat in contradiction to the existing entry (see 0000404), it was decided to
add a single "grib" type and use the parameter "edition" to differentiate between the different GRIB versions:
  application/grib;edition=1
  application/grib;edition=2

Therefore the GRIB entries should probably be changed to:

# https://en.wikipedia.org/wiki/GRIB, https://www.iana.org/assignments/media-types/application/grib
0 string GRIB
>7 byte =1 Gridded binary (GRIB) version 1
!:mime application/grib;edition=1
!:ext grb/grib
>7 byte =2 Gridded binary (GRIB) version 2
!:mime application/grib;edition=2
!:ext grb2/grib2

As this mime entry is very fresh, there will be "application/x-grib" and "application/x-grib2" mime types
floating around for a long time. But putting it straight now is probably the right decision.
TagsNo tags attached.

Activities

manfredsc

2024-07-08 22:00

reporter   ~0004062

Hmm, I just tried it by patching /etc/magic, parameters seem not to be supported.
So I guess mime should simply be
!:mime application/grib
for both cases.

manfredsc

2024-07-08 22:05

reporter   ~0004063

And versions are called editions for GRIB, so one could add the string accordingly:

# https://en.wikipedia.org/wiki/GRIB, https://www.iana.org/assignments/media-types/application/grib
0 string GRIB
>7 byte =1 Gridded binary (GRIB) Edition 1
!:mime application/grib
!:ext grb/grib
>7 byte =2 Gridded binary (GRIB) Edition 2
!:mime application/grib
!:ext grb2/grib2

christos

2024-11-10 17:05

manager   ~0004099

Amended, thanks

Issue History

Date Modified Username Field Change
2024-07-08 16:07 manfredsc New Issue
2024-07-08 22:00 manfredsc Note Added: 0004062
2024-07-08 22:05 manfredsc Note Added: 0004063
2024-11-10 17:05 christos Assigned To => christos
2024-11-10 17:05 christos Status new => assigned
2024-11-10 17:05 christos Status assigned => resolved
2024-11-10 17:05 christos Resolution open => fixed
2024-11-10 17:05 christos Fixed in Version => HEAD
2024-11-10 17:05 christos Note Added: 0004099