Bug 2038000 - file outputs "audio/mpegapplication/octet-stream" as MIME type for MP3s, fixed in 5.41
Summary: file outputs "audio/mpegapplication/octet-stream" as MIME type for MP3s, fixe...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: file
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vincent Mihalkovič
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-07 01:43 UTC by Tim Landscheidt
Modified: 2022-12-13 16:16 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-12-13 16:16:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tim Landscheidt 2022-01-07 01:43:31 UTC
file-5.40-9.fc35.x86_64 outputs "audio/mpegapplication/octet-stream" as the MIME type for MP3 files:

| [tim@vagabond /tmp/tmp.BB2gY6Xbf2]$ wget -O test.mp3 https://rss.art19.com/episodes/69ee2757-2c43-4f39-9b32-fc9b68028a8c.mp3?rss_browser=BAhJIg9GZWVkQnVybmVyBjoGRVQ%3D--1349f61597e261c82b72aa63507666dd2bce579d
| --2022-01-07 01:10:43--  https://rss.art19.com/episodes/69ee2757-2c43-4f39-9b32-fc9b68028a8c.mp3?rss_browser=BAhJIg9GZWVkQnVybmVyBjoGRVQ%3D--1349f61597e261c82b72aa63507666dd2bce579d
| Auflösen des Hostnamens rss.art19.com (rss.art19.com)… 151.101.114.110
| Verbindungsaufbau zu rss.art19.com (rss.art19.com)|151.101.114.110|:443 … verbunden.
| HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found
| Platz: https://rss.art19.com/external/episodes/69ee2757-2c43-4f39-9b32-fc9b68028a8c.mp3?rss_browser=BAhJIg9GZWVkQnVybmVyBjoGRVQ%3D--1349f61597e261c82b72aa63507666dd2bce579d [folgend]
| --2022-01-07 01:10:43--  https://rss.art19.com/external/episodes/69ee2757-2c43-4f39-9b32-fc9b68028a8c.mp3?rss_browser=BAhJIg9GZWVkQnVybmVyBjoGRVQ%3D--1349f61597e261c82b72aa63507666dd2bce579d
| Wiederverwendung der bestehenden Verbindung zu rss.art19.com:443.
| HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found
| Platz: https://content.production.cdn.art19.com/validation=1641604186,c801720c-94de-5c79-9f20-7c9f842ec75e,nQ0ORaetpNi1BCbKlcYyHzErZPo/episodes/69ee2757-2c43-4f39-9b32-fc9b68028a8c/c81d2933e20de0ed8005ec725aa203636733e10fb6a62c9281b6a55e4f6579470b3d4998d6f6bd62d9f340e119cf47e8ba066294353500612b66d549e5ffadee/DLM1354.mp3 [folgend]
| --2022-01-07 01:10:44--  https://content.production.cdn.art19.com/validation=1641604186,c801720c-94de-5c79-9f20-7c9f842ec75e,nQ0ORaetpNi1BCbKlcYyHzErZPo/episodes/69ee2757-2c43-4f39-9b32-fc9b68028a8c/c81d2933e20de0ed8005ec725aa203636733e10fb6a62c9281b6a55e4f6579470b3d4998d6f6bd62d9f340e119cf47e8ba066294353500612b66d549e5ffadee/DLM1354.mp3
| Auflösen des Hostnamens content.production.cdn.art19.com (content.production.cdn.art19.com)… 151.101.14.110
| Verbindungsaufbau zu content.production.cdn.art19.com (content.production.cdn.art19.com)|151.101.14.110|:443 … verbunden.
| HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
| Länge: 52618908 (50M) [audio/mpeg]
| Wird in »test.mp3« gespeichert.

| test.mp3                                                   100%[========================================================================================================================================>]  50,18M  70,7KB/s    in 17m 38s

| 2022-01-07 01:28:23 (48,6 KB/s) - »test.mp3« gespeichert [52618908/52618908]

| [tim@vagabond /tmp/tmp.BB2gY6Xbf2]$ file test.mp3
| test.mp3: Audio file with ID3 version 2.4.0, contains:MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo
| [tim@vagabond /tmp/tmp.BB2gY6Xbf2]$ file --mime-type test.mp3
| test.mp3: audio/mpegapplication/octet-stream
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| [tim@vagabond /tmp/tmp.BB2gY6Xbf2]$ file -i test.mp3
| test.mp3: audio/mpegapplication/octet-stream; charset=binary
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| [tim@vagabond /tmp/tmp.BB2gY6Xbf2]$ file --version
| file-5.40
| magic file from /etc/magic:/usr/share/misc/magic

The expected output is "audio/mpeg".

This appears to have been fixed in Rawhide's 5.41:

| [tim@vagabond /tmp/tmp.BB2gY6Xbf2]$ ~/src/fedora/rpms/file/file-5.41/
| autom4te.cache/   config.guess      config.sub        configure.backup  doc/              libtool           magic/            python/           tests/
| compile           config.status     configure         depcomp           install-sh        m4/               missing           src/
| [tim@vagabond /tmp/tmp.BB2gY6Xbf2]$ ~/src/fedora/rpms/file/file-5.41/src/file test.mp3
| test.mp3: Audio file with ID3 version 2.4.0, contains: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo
| [tim@vagabond /tmp/tmp.BB2gY6Xbf2]$ ~/src/fedora/rpms/file/file-5.41/src/file --mime-type test.mp3
| test.mp3: audio/mpeg
            ^^^^^^^^^^
| [tim@vagabond /tmp/tmp.BB2gY6Xbf2]$ ~/src/fedora/rpms/file/file-5.41/src/file -i test.mp3
| test.mp3: audio/mpeg; charset=binary
            ^^^^^^^^^^
| [tim@vagabond /tmp/tmp.BB2gY6Xbf2]$ ~/src/fedora/rpms/file/file-5.41/src/file --version
| file-5.41
| magic file from /etc/magic:/usr/share/misc/magic
| [tim@vagabond /tmp/tmp.BB2gY6Xbf2]$

So updating file to 5.41 in Fedora 35 as well seems like a reasonable solution.

Comment 1 Ben Cotton 2022-11-29 17:36:46 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Ben Cotton 2022-12-13 16:16:09 UTC
Fedora Linux 35 entered end-of-life (EOL) status on 2022-12-13.

Fedora Linux 35 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.