Summary: | Can not access remote root directory (/) via SFTP | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Hanabishi <i.r.e.c.c.a.k.u.n+bugs.kde.org> |
Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | akselmo, danieltjandra, kde, kdelibs-bugs-null, LucasGGamerM |
Priority: | HI | Keywords: | regression |
Version First Reported In: | 6.16.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
URL: | https://invent.kde.org/frameworks/kio/-/merge_requests/1921 | ||
Latest Commit: | https://invent.kde.org/frameworks/kio/-/commit/2cf5289d9e994f830749eb30791aabe1719406f9 | Version Fixed In: | |
Sentry Crash Report: |
Description
Hanabishi
2025-07-20 16:29:54 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1940 *** Bug 507450 has been marked as a duplicate of this bug. *** Git commit 2cf5289d9e994f830749eb30791aabe1719406f9 by Akseli Lahtinen. Committed on 28/07/2025 at 09:45. Pushed by akselmo into branch 'master'. KCoreDirLister: Do not list files again if the new url has same job When getting a redirection URL, we check if the URL already has a job or not. We also check that it's not the current job we're working on. If it has same job as given to the slot as parameter, we are not working on a new directory, but an old one. This can happen when we are in `sftp://foo@bar/home/foo`, then type `sftp://foo@bar` which in turn redirects us back to `sftp://foo@bar/home/foo`. In these cases, we know we're not working on a new directory, so we handle it through cache or refreshing it. This fixes crashes with the oldJob assert and also gives back to Qt the trailing slash handling, while keeping expected behavior. This also implements the mock test of commit 0808afd7 Related: bug 451050, bug 507185 M +4 -0 CMakeLists.txt M +70 -8 autotests/kdirlistertest.cpp M +3 -2 autotests/kdirlistertest.h M +9 -15 src/core/kcoredirlister.cpp M +4 -0 src/core/worker.cpp M +4 -0 src/core/worker_p.h https://invent.kde.org/frameworks/kio/-/commit/2cf5289d9e994f830749eb30791aabe1719406f9 *** Bug 507922 has been marked as a duplicate of this bug. *** |