bad mime type for bmp

Bug #1879019 reported by pqwoerituytrueiwoq
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ristretto
New
Undecided
Unassigned
file (Ubuntu)
Confirmed
Low
Unassigned
ristretto (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Sample BMP file attached to this related bug:
https://bugs.launchpad.net/ubuntu/+source/ristretto/+bug/1762242

Note the attached screenshot here, this is a regression

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: libmagic1 1:5.38-4
ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
Uname: Linux 5.4.0-29-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: XFCE
Date: Fri May 15 23:28:26 2020
InstallationDate: Installed on 2018-04-29 (747 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: file
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
pqwoerituytrueiwoq (pqwoerituytrueiwoq) wrote :
description: updated
Revision history for this message
pqwoerituytrueiwoq (pqwoerituytrueiwoq) wrote :

Steps to reproduce:

~$ wget https://bugs.launchpad.net/ubuntu/+source/ristretto/+bug/1762242/+attachment/5107204/+files/180408141636.BMP
~$ file --mime-type 180408141636.BMP

Expected Output
180408141636.BMP: image/x-ms-bmp

Unexpected Output
180408141636.BMP: application/octet-stream

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in file (Ubuntu):
status: New → Confirmed
Revision history for this message
Avinash Sonawane (kearoot) wrote :

Now fixed upstream https://github.com/file/file/commit/b314cd76cfbaf1db9ba9a768cfe8d09d8fcdd652

file/src$ ./file --mime-type -m ../magic/Magdir ../../180408141636.BMP
../../180408141636.BMP: image/x-ms-bmp
file/src$

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ristretto (Ubuntu):
status: New → Confirmed
Changed in ristretto (Ubuntu):
status: Confirmed → Invalid
Changed in file (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.