Bug 1025228

Summary: CUPS does not accept '@' as a part of password in smb URI
Product: [Fedora] Fedora Reporter: vikram goyal <vikigoyal>
Component: cupsAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 18CC: jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-31 10:44:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Desktop snapshot none

Description vikram goyal 2013-10-31 09:46:07 UTC
Created attachment 817787 [details]
Desktop snapshot

Description of problem:
I am connecting to an SMB printer. A problem I came across was that if '@' is a part of the password given in the smb URI, error occurs while adding that printer.

Version-Release number of selected component (if applicable):

cups.x86_64                         1:1.5.4-28.fc18                    @updates 
cups-libs.x86_64                    1:1.5.4-28.fc18                    @updates 
cups-pk-helper.x86_64               0.2.4-1.fc18                       @anaconda
ghostscript-cups.x86_64             9.06-4.fc18                        @updates 
gutenprint-cups.x86_64              5.2.9-7.fc18                       @updates 
python-cups.x86_64                  1.9.63-1.fc18                      @updates

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:
One should be able to add a printer with a password containing '@' symbol since it is not possible for the user to ask the administrators to change the passwords of windows machines for Linux cups printing.

Additional info:
Please see the accompanying PNG

Comment 1 Tim Waugh 2013-10-31 10:44:57 UTC
If using the CUPS web interface directly, you need to percent-encode any characters that may otherwise confuse a URI parser.