Bug 274528 - smb url does not support passwords with a hash sign
Summary: smb url does not support passwords with a hash sign
Status: RESOLVED NOT A BUG
Alias: None
Product: kio
Classification: Unmaintained
Component: smb (show other bugs)
Version: 4.6
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-30 16:56 UTC by Diederik van der Boor
Modified: 2014-10-10 23:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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