Bug 274528

Summary: smb url does not support passwords with a hash sign
Product: [Unmaintained] kio Reporter: Diederik van der Boor <mail-kdebugs>
Component: smbAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: faure
Priority: NOR    
Version: 4.6   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Diederik van der Boor 2011-05-30 16:56:29 UTC
Version:           1.6.1 (using KDE 4.6.3) 
OS:                Linux

When a smb://user:some#pass@host/ URL is used, dolphin does not parse the URL properly.

Instead, It thinks it's an http:// URL. The problem seems to be caused by the '#' char in the password.

Reproducible: Always




OS: Linux (i686) release 2.6.37.6-0.5-desktop
Compiler: gcc
Comment 1 David Faure 2012-07-20 11:12:01 UTC
Correct.  # is the beginning of a fragment, in a URL.

Just like '@' needs to be encoded as %40 ( http://konqueror.org/faq/#HowcanIconnecttoanFTPsitethatrequiresaloginandpassword ), '#' needs to be encoded as %23. I'll add it there.

This is unintuitive, of course, but using reserved characters cannot work ;) and the more typical way to do this is to type the password in the password dialog anyway.
Comment 2 David Faure 2012-07-20 11:18:15 UTC
SVN commit 1306743 by dfaure:

Also mention '#' as a special char that needs manual encoding


 M  +4 -1      index.php  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1306743
Comment 3 David Faure 2014-10-10 23:12:06 UTC
Git commit 8d06248c0fff4b67ec75c14c5c1c046e759f78a0 by David Faure.
Committed on 20/07/2012 at 11:18.
Pushed by whiting into branch 'master'.

Also mention '#' as a special char that needs manual encoding

M  +4    -1    faq/index.php

http://commits.kde.org/websites/konqueror-org/8d06248c0fff4b67ec75c14c5c1c046e759f78a0