<table><tr><td style="">astippich edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-arcpaalohbuhlxn/">(Show Details)</a><br />astippich edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-yimszqpomp4mp7q/">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D20011">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">D18819 changed the mimetype detection to content matching. However,<br />
this has side effects as the content matching algorithm quite often<br />
puts out ancestor mimetypes, in some case even "application/octet-stream".<br />
Consequently, some extractors are now not called.<br />
To solve this, query both extension and content mimetypes, and only<br />
use the file extension mimetype when the mimetype detected by file content<br />
is an ancestor, and use content mimetype when it isn't.<br />
This gives the precise mime type as before the change, but also prevents<br />
false detection only based on extension, which D18819 tried to fix.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Use the new mime type helper from KFileMetaData</span><br />
<br />
CCBUG: 403902</div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">unfortunately, no unit tests</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D20011">https://phabricator.kde.org/D20011</a></div></div><br /><div><strong>To: </strong>astippich, Baloo, bruns<br /><strong>Cc: </strong>kde-frameworks-devel, gennad, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams<br /></div>