Summary: | Dolphin cannot browse archives that are not named with the appropriate extension | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Kishore Gopalakrishnan <kishore96> |
Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | bugseforuns, elvis.angelaccio, kde, kdelibs-bugs-null |
Priority: | NOR | ||
Version First Reported In: | git master | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Kishore Gopalakrishnan
2018-05-27 12:10:15 UTC
I forgot to mention this: the 'extract' option also does not appear in the right-click context menu for archives which don't have an extension. Very interesting find. KUrlNavigator is built so that it will seamlessly switch between browsing "real" folders and archives, when a URL is set, it checks for mime types and then has some special handling for ZIP and TAR archives. The interesting bit is that QMimeDatabase mimeTypeForUrl("zip:///home/kaiuwe/Downloads/test2.zip") correctly returns application/zip whereas the same file just renamed zip:///home/kaiuwe/Downloads/test2 returns application/octet-stream and then it exits out into a folder. (I don't know where exactly the mime type resolution happens as "zip" is not a local URL so it will probably ask KIO and then probably the archive KIO gets confused? I'm not very knowledgable about KIO internals) Re-assigning to KIO. The behaviour has changed (but still does not work as expected). Now, instead of showing 'invalid protocol', it just appears to enter the zip archive (that is named without an appropriate extension) and says 'the folder is empty' (even if the archive is not empty). The 'Extract' option appears correctly (and works as expected) in the right-click menu. Operating System: Arch Linux KDE Plasma Version: 5.23.3 KDE Frameworks Version: 5.87.0 Qt Version: 5.15.2 Kernel Version: 5.15.2-arch1-1 (64-bit) Graphics Platform: X11 Processors: 8 × AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx Memory: 21.5 GiB of RAM Graphics Processor: AMD Radeon Vega 8 Graphics *** Bug 400197 has been marked as a duplicate of this bug. *** |