Bug 434801 - Cannot delete files on sshfs because file.so keeps them open
Summary: Cannot delete files on sshfs because file.so keeps them open
Status: RESOLVED DUPLICATE of bug 434455
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.80.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-22 22:14 UTC by Jan
Modified: 2021-03-23 12:26 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan 2021-03-22 22:14:04 UTC
Files on a sshfs mount cannot be deleted anymore after having previously opened them through dolphin. This happens because sshfs doesn't allow deleting files that are kept open and file.so does so ever since 5.58.0.
Comment 1 Jan 2021-03-22 23:19:07 UTC
066fa6649610c6eaecb4eafeb317c5285d32109b is the first bad commit
commit 066fa6649610c6eaecb4eafeb317c5285d32109b
Author: David Faure <faure@kde.org>
Date:   Sat Feb 20 13:26:35 2021 +0100

    Extract a new job MimeTypeFinderJob from OpenUrlJob.
    
    This new (KIOCore) job allows to determine the mimetype for a URL.

 autotests/CMakeLists.txt            |   1 +
 autotests/mimetypefinderjobtest.cpp | 120 +++++++++++++++++++
 autotests/mimetypefinderjobtest.h   |  34 ++++++
 src/core/CMakeLists.txt             |   1 +
 src/core/mimetypefinderjob.cpp      | 229 ++++++++++++++++++++++++++++++++++++
 src/core/mimetypefinderjob.h        |  90 ++++++++++++++
 src/gui/openurljob.cpp              | 163 +++----------------------
 7 files changed, 493 insertions(+), 145 deletions(-)
 create mode 100644 autotests/mimetypefinderjobtest.cpp
 create mode 100644 autotests/mimetypefinderjobtest.h
 create mode 100644 src/core/mimetypefinderjob.cpp
 create mode 100644 src/core/mimetypefinderjob.h
Comment 2 Nate Graham 2021-03-23 12:26:02 UTC

*** This bug has been marked as a duplicate of bug 434455 ***