https://bugs.kde.org/show_bug.cgi?id=423251
Bug ID: 423251
Summary: kmimetypefinder5 misidentifies some text files as
image/x-quicktime
Product: kde-cli-tools
Version: 5.12.8
Platform: Ubuntu Packages
OS: Linux
Status: REPORTED
Severity: minor
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
kmimetypefinder5 misidentifies text files as image/x-quicktime if they match
'head -n 1 | grep '^....idat'.
STEPS TO REPRODUCE
1. Create a file called readme.txt that contains only the word "candidate".
2. Run "kmimetypefinder5 readme.txt"
OBSERVED RESULT
image/x-quicktime
EXPECTED RESULT
text/plain
SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.12.9
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5
Kernel Version: 5.3.0-59-generic
ADDITIONAL INFORMATION
This is due to the magic value of qtif files:
<magic priority="50">
<match value="idat" type="string" offset="4"/>
</magic>
<glob pattern="*.qtif"/>
<glob pattern="*.qif"/>
/usr/share/mime/packages/freedesktop.org.xml
It could be helped by a more robust match value, but it should also not be
matched by files that do not match the glob pattern.
$ kmimetypefinder5 --version
kmimetypefinder 5.12.8
--
You are receiving this mail because:
You are watching all bug changes.