Bug 454015

Summary: kio slaves crash if trash is a symlink
Product: [Frameworks and Libraries] frameworks-kio Reporter: Alexandre Pereira <pereira.alex>
Component: TrashAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alexandre Pereira 2022-05-18 21:59:40 UTC
I use a symlink to another drive as my ~/.local/share/Trash folder.

when not using a symlink, it works fine, but with a symlink, the kio slave crashes, with the following output in the terminal:

ASSERT: "info.origPath[0] == QLatin1Char('/')" in file /home/main-builder/pkgwork/src/kio/src/ioslaves/trash/trashimpl.cpp, line 784
27 -- exe=/usr/lib/kf5/kioslave5
18 -- appname=kioslave5
21 -- apppath=/usr/lib/kf5
9 -- signal=6
11 -- pid=450601
12 -- startupid=0
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kioslave5 path = /usr/lib/kf5 pid = 450601
KCrash: Arguments: /usr/lib/kf5/kioslave5 trash  local:/run/user/1500/dolphinsyBafu.2.slave-socket 
kf.kio.core: "The process for the trash protocol died unexpectedly."


thanks !
Comment 1 Alexandre Pereira 2024-05-09 11:10:35 UTC
In cleaning up bug reports, I just tested this and seemed to work!

So I think the bug is resolved!