Bug 225240

Summary: Yast Printer module not accepting password with "@" in it
Product: [openSUSE] openSUSE 10.3 Reporter: Bhupinder Singh <bhupi70>
Component: YaST2Assignee: Michal Zugec <mzugec>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Enhancement    
Priority: P5 - None CC: jsmeix, th.sch
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Yast2 Logs

Description Bhupinder Singh 2006-12-01 12:01:31 UTC
I am trying to add a Printer through Yast, as follows:

Printer --> Network Printers --> Print via SMB Network Printer --> Samba or Windows Printer

On this screen the Password field does not accept passwords with "@" in it. 

Although I am able to connect to the printer using the same password through command line.
Comment 1 Matej Horvath 2006-12-01 16:48:04 UTC
Please attach your yast log files. 
http://en.opensuse.org/Bugs/YaST

Thank you
Comment 2 Bhupinder Singh 2006-12-04 09:30:03 UTC
Created attachment 108075 [details]
Yast2 Logs

Here is the tar of the Yast2 dir from /var/logs
Comment 3 Matej Horvath 2006-12-04 12:45:31 UTC
According to the logs, reassigning to Michal.
Comment 4 Bhupinder Singh 2006-12-05 06:31:14 UTC
Please let me know if you need any further information

thanks and regards
Comment 5 Michal Zugec 2006-12-05 07:26:00 UTC
I think it's enought.
When I will have a time, I will consult this with samba documentation
Thank for report
Comment 6 Bhupinder Singh 2006-12-05 17:12:21 UTC
I am able to use the same password with RedHat Linux, Fedora Core 
Comment 7 Bhupinder Singh 2006-12-06 06:52:18 UTC
I changed my password and it works. But the command line works with all the characters.

bhupinder@apps1:~> echo -en "\r" | smbclient "//192.168.0.59/HPLaserJ" "test@123" -c "print -" -U "test" -W "bhrigus-hyd"
Domain=[BHRIGUS-HYD] OS=[Windows Server 2003 3790 Service Pack 1] Server=[Windows Server 2003 5.2]
putting file - as stdin-17055 (0.3 kb/s) (average 0.3 kb/s)

Comment 8 Matej Horvath 2006-12-11 21:59:20 UTC
This bug has been reassigned to us by accident, according to the bug activity. I'm going to reassign it back to Michal.
Comment 9 Johannes Meixner 2007-02-05 11:24:56 UTC
'@' in the password works directly on the command line but it is
at least problematic (perhaps impossible) for CUPS because
here it must be in the DeviceURI which is according to
"man smbspool" something like
--------------------------------------------------------------
smb://username:password@server[:port]/printer
smb://username:password@workgroup/server[:port]/printer
--------------------------------------------------------------
I.e. '@' is used to seperate the password from the server name
or the workgroup so that there cannot be a plain '@' in the
password.

Perhaps it is possible to somehow encode a '@' in the password
and smbspool can decode it but at the moment I don't know.
I will make it as an enhancement request for openSUSE 10.3
(which does not mean that it can be solved there).
Comment 10 Michal Zugec 2007-03-23 07:47:51 UTC
later
Comment 11 Michal Zugec 2007-11-22 09:42:46 UTC
reopen to solve
Comment 12 Michal Zugec 2007-11-22 09:43:12 UTC
*** Bug 341560 has been marked as a duplicate of this bug. ***
Comment 13 Andreas Gruenbacher 2007-11-22 13:49:44 UTC
Comment 9: the usual thing to do would be to url encode special charters. This would turn @ into %40. There are other characters like / and & which need to be url encoded as well.
Comment 14 Michal Zugec 2007-11-26 14:38:35 UTC
fixed in yast2-printer-2.15.6