Summary: | Dolphin crashes when I try to open a WebDAV location without trailing slash | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Tomasz Kaźmierczak <tomek-k> |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | kdedev, kfm-devel |
Priority: | NOR | Keywords: | drkonqi |
Version First Reported In: | 24.02.2 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Tomasz Kaźmierczak
2024-05-26 12:18:03 UTC
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). Perhaps I should add that this bug still exists in Dolphin 24.05.2 running on the following system: Qt Version: 6.7.0 Frameworks Version: 6.3.0 KDE Plasma Version: 6.1.2 OS: Linux 6.5.0-10043-tuxedo x86_64 Windowing System: Wayland Distribution: TUXEDO OS 3 Bug still exists in: Dolphin Version: 24.08.0 Frameworks Version: 6.5.0 KDE Plasma Version: 6.1.4 Qt Version: 6.7.2 OS: Linux 6.8.0-101041-tuxedo x86_64 Windowing System: Wayland Distribution: TUXEDO OS 3 I'm unable to reproduce this with Dolphin built from git-master or v24.12.3. It looks like Dolphin was updated to always put the trailing slash after entering a davs uri. Are you still able to reproduce this crash with 24.12.3 or greater? At the moment the version of Dolphin in TuxedoOS is 24.12.2, and the bug is still there. Will re-check when 24.12.3 is available in the repo. 🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone! 🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME. Verified with Dolphin 24.12.3 and can confirm the bug is fixed. |