Bug 158238 - KUrlNavigator does not correctly parse URLs with two consecutive slashes
Summary: KUrlNavigator does not correctly parse URLs with two consecutive slashes
Status: RESOLVED FIXED
Alias: None
Product: kfile
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-22 20:33 UTC by David Benjamin
Modified: 2009-05-21 01:26 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot of problem (18.84 KB, image/png)
2008-03-12 21:22 UTC, David Benjamin
Details
Patch for fixing duplicated slashes in KUrlNavigator/Buttons (1.60 KB, patch)
2008-04-25 07:22 UTC, Tobias Koenig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Benjamin 2008-02-22 20:33:04 UTC
Version:            (using KDE 4.0.1)
Installed from:    Ubuntu Packages
OS:                Linux

Steps to Reproduce:
1. Open Dolphin.
2. Set the location bar to editable mode.
3. Type /path/to//some/directory/ and press enter
4. Return the location bar to breadcrumb mode.

Results:
Dolphin goes to /path/to/some/directory/, but the KUrlNavigator displays a representation of /path/to/
Comment 1 FiNeX 2008-02-23 14:37:44 UTC
Cannot reproduce on revision 778170.
Could you try a more updated version please?

Thanks a lot!
Comment 2 FiNeX 2008-03-08 12:12:38 UTC
Cannot reproduce even in more recent revision.
Comment 3 David Benjamin 2008-03-12 21:22:20 UTC
Created attachment 23882 [details]
screenshot of problem

Hi.

Sorry for taking so long to respond. It was a while before I got an SVN build
running, or had time to play around for that matter.

The bug still occurs for me on an SVN build checked out today. (The base system
is Fedora 8, if that is relevant.)

Attached is an image of the bug.
Comment 4 FiNeX 2008-03-13 10:22:57 UTC
Now I can reproduce this bug too. I've re-compiled last monday.
Comment 5 FiNeX 2008-03-13 10:23:49 UTC
It this a "kfile" or a "dolphin" issue?
Comment 6 David Benjamin 2008-03-13 16:21:33 UTC
Isn't KUrlNavigator part of kfile? Or am I ridiculously confused?
Comment 7 FiNeX 2008-03-13 16:32:10 UTC
I don't know. I've asked it because I don't know :-)
Comment 8 Tobias Koenig 2008-04-25 07:21:09 UTC
Hej,

I can reproduce the bug with current trunk. Attached is a patch which fixes
the problem for local pathes. Remote pathes (e.g. fish://) are still buggy.

IMHO the classes need a complete redesign to fix that issue.

Ciao,
Tobias
Comment 9 Tobias Koenig 2008-04-25 07:22:28 UTC
Created attachment 24497 [details]
Patch for fixing duplicated slashes in KUrlNavigator/Buttons
Comment 10 David Benjamin 2009-03-29 05:33:46 UTC
The problem still occurs in KDE 4.2.1 here.
Comment 11 Dario Andres 2009-05-21 01:10:37 UTC
Here using:

Qt: 4.5.1 (qt-copy  958974)
KDE: 4.2.86 (KDE 4.2.86 (KDE 4.3 >= 20090514))
kdelibs svn rev. 969788 / kdebase svn rev. 969788
on ArchLinux i686 - Kernel 2.6.29.3

When I'm editing the locationbar, if I enter a second slash (like "/home//user"), and press Enter, the second slash is removed automatically. So, when you return to the breadcrumb mode, the path is displayed Ok.

Can anyone else confirm this ?
Thanks
Comment 12 Raphael Kubo da Costa 2009-05-21 01:26:29 UTC
This was fixed by commit 948028 - please see bug 188417 as well.