[Bug 2079979] [NEW] 'file' reports improper mime type on text file

Daniel Schwab 2079979 at bugs.launchpad.net
Mon Sep 9 09:56:06 UTC 2024


Public bug reported:

The utility 'file' reports different mime-types depending on the content
length of a text file with just multiple times 'X' as content.

For a file with 5789792 times the letter 'X' as content the 'file' tool returns 'application/SIMH-tape-data' as mime-type.
With just 1 letter less (5789791) the tool return 'text/plain' as mime-type, which imho is the correct result.


file is version 'file-5.45' on Ubuntu 24.04.

** Affects: file (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "test text file which file retruns a improper mime-type"
   https://bugs.launchpad.net/bugs/2079979/+attachment/5814779/+files/text_test_file.txt

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to file in Ubuntu.
https://bugs.launchpad.net/bugs/2079979

Title:
  'file' reports improper mime type on text  file

Status in file package in Ubuntu:
  New

Bug description:
  The utility 'file' reports different mime-types depending on the
  content length of a text file with just multiple times 'X' as content.

  For a file with 5789792 times the letter 'X' as content the 'file' tool returns 'application/SIMH-tape-data' as mime-type.
  With just 1 letter less (5789791) the tool return 'text/plain' as mime-type, which imho is the correct result.

  
  file is version 'file-5.45' on Ubuntu 24.04.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/file/+bug/2079979/+subscriptions




More information about the foundations-bugs mailing list