https://bugs.kde.org/show_bug.cgi?id=398908

--- Comment #88 from David Faure <fa...@kde.org> ---
Git commit c19876052ecec18a87a82f5950e8909e22e895ba by David Faure, on behalf
of Ahmad Samir.
Committed on 13/05/2021 at 23:15.
Pushed by dfaure into branch 'master'.

MimeTypeFinderJob: the StatJob details should include the mimetype

Apparently we forgot to specify that we want the UDS_MIME_TYPE field in
the statFile() method (both when it lived in OpenUrlJob and when it was moved
to MimeTypeFinderJob). And now there is a dedicated StatJob flag, StatMimeType,
that we can use.

Not passing KIO::StatMimeType when creating the StatJob meant the code always
used a get job to determine the mime type, which mean that e.g. opening an
ISO file from Dolphin, which supposedly just needs to launch Ark, had the
whole file read into memory, which means that opening a couple of ISO's and
you're out of memory...

Thanks to sitter for doing a big chunk of the investigative work in the bug
report.

M  +5    -1    src/core/mimetypefinderjob.cpp

https://invent.kde.org/frameworks/kio/commit/c19876052ecec18a87a82f5950e8909e22e895ba

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to