[dolphin] [Bug 487587] Dolphin crashes when I try to open a WebDAV location
Tomasz Kaźmierczak
bugzilla_noreply at kde.org
Tue Jul 16 19:32:32 BST 2024
https://bugs.kde.org/show_bug.cgi?id=487587
--- Comment #1 from Tomasz Kaźmierczak <tomek-k at runbox.com> ---
I was trying to debug the issue.
I've run Dolphin in gdb (with debug symbols loaded, but without the source code
attached) and the crash indeed, as the stack trace suggests, is caused by the
fact that some entry processed by KFileItem starts with the slash character -
in the console I can see the following message:
ASSERT: "!path2.startsWith(QLatin1Char('/'))" in file
./src/core/../utils_p.h, line 109
Then, in the debugger, I noticed that the string (m_strName) is actually the
slash: "/". So I figured that Dolphin may just not like root paths in WebDAV
URLs and I started playing with the URL.
Originally my URL was like this (address and port number are obviously made
up):
webdavs://my-domain.com:1234
This crashed Dolphin. So I've tried the following:
webdavs://my-domain.com:1234/
It worked!
Yes - a slash at the end of URL stopped Dolphin from crashing, although the
source code complained about a slash...
Anyway, I think that Dolphin should accept URLs with no trailing slashes (or at
least it shouldn't be crashing if one is not there).
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the kfm-devel
mailing list