Bug 332237

Summary: Configured network printers are not shown in YaST printer module
Product: [openSUSE] openSUSE 10.3 Reporter: Alberto Passalacqua <alberto.passalacqua>
Component: YaST2Assignee: Michal Zugec <mzugec>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST2 logs

Description Alberto Passalacqua 2007-10-09 15:20:54 UTC
As in the topic, configured network printers are not shown in YaST printer module.

The same problem was present in openSUSE 10.2 before patching, and I have it with YaST-gtk now.

Regards,
Alberto
Comment 1 Cyril Hrubis 2007-10-10 17:06:00 UTC
Please attach y2logs. If you are in doubt follow:

http://en.opensuse.org/Bugs/YaST

Thanks!
Comment 2 Alberto Passalacqua 2007-10-10 17:16:24 UTC
Created attachment 177490 [details]
YaST2 logs
Comment 3 Alberto Passalacqua 2007-10-10 17:17:04 UTC
Thanks for your answer! Here they are :-)

Regards,
Alberto
Comment 4 Michal Zugec 2007-10-30 16:10:58 UTC
Thanks for logs, but unfortunately I'm not sure what's wrong.
You add there smb queue and you wasn't able to see it in YaST, right?

After YaST writes that can you see that queue in output from "lpstat -a"?
Is there valid entry in /etc/cups/printers.conf ?
Comment 5 Alberto Passalacqua 2007-10-30 22:05:14 UTC
Hello,
lpstat -a gives:

deskjet990c accetta richieste da mar 16 ott 2007 15:58:34 CEST
psc2350series accetta richieste da mar 09 ott 2007 18:47:55 CEST

My /etc/cups/printers.conf is (I replaces passwords and workgroup with XXX):

# Printer configuration file for CUPS v1.2.12
# Written by cupsd on 2007-10-16 16:02
<Printer deskjet990c>
Info HP DeskJet 990C Foomatic/hpijs (recommended)
DeviceURI smb://alberto:XXXXX@XXXXX/XXXXX/deskjet990c
State Idle
StateTime 1192543114
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<DefaultPrinter psc2350series>
Info psc2350series
DeviceURI smb://alberto:XXXXX@XXXXX/XXXXX/psc2350series
State Idle
StateTime 1191948475
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer

The printers regularly work, they're just not visible in YaST. If it can help, this bug was already present and then fixed in 10.2.

Regards,
Alberto
Comment 6 Michal Zugec 2007-10-31 11:53:16 UTC
>> If it can help, this bug was already present and then fixed in 10.2.

yes, bugreport number will help
Comment 7 Alberto Passalacqua 2007-10-31 12:58:30 UTC
Bug 230693 (Marked as duplicate of Bug 240727 ) There was also bug 223197.

P.S. Bugzilla has a nice search function. Just look for 10.2 bugs, Status: ALL; Search word: Printer ;-)

Regards,
Alberto
Comment 8 Michal Zugec 2007-11-02 09:10:42 UTC
I can't reproduce it on my system.
But it's possible that some regexp failed with your user/password.
I will create some small code for testing on your side ...
Comment 9 Michal Zugec 2007-11-02 09:54:35 UTC
First of all: grep -E 'DeviceURI' /etc/cups/printers.conf|cut -d' ' -f2
This should write you our locally connected uri's
Comment 10 Michal Zugec 2007-11-02 09:56:31 UTC
Probably reproduced with ' ' (space) in password, right?
Comment 11 Michal Zugec 2007-11-02 11:56:41 UTC
fixed in yast2-printer-2.16.3
Comment 12 Alberto Passalacqua 2007-11-02 16:22:40 UTC
Hello Michal,
yes, I've a space in the passoword. 

grep -E 'DeviceURI' /etc/cups/printers.conf|cut -d' ' -f2

writes

smb://alberto:XXX
smb://alberto:XXX

where XXX is the password truncated at the space position.

Thanks a lot for your help, I really appreciated it :-)

Regards,
Alberto