Bug 225351 - system-config-printer sees the windows workgroup, but not the machine or printer to share
system-config-printer sees the windows workgroup, but not the machine or prin...
Product: Fedora
Classification: Fedora
Component: system-config-printer (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Tim Waugh
Depends On:
Blocks: F8Blocker
  Show dependency treegraph
Reported: 2007-01-29 20:30 EST by Luis Felipe Marzagao
Modified: 2008-08-02 19:40 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-09-21 12:19:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
prevent traceback (642 bytes, patch)
2007-04-01 05:15 EDT, Jani Monoses
no flags Details | Diff
pysmb.py (8.89 KB, text/x-python)
2007-09-03 12:59 EDT, Tim Waugh
no flags Details

  None (edit)
Description Luis Felipe Marzagao 2007-01-29 20:30:27 EST
Description of problem:

The utility is able to see the windows workgropus on LAN, but when you click to
expand one workgroup, in order to see the machines in it and the subsequent
printers shared, it doesn't show anything. It's not possible to add the printer
in FC6.

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

system-config-printer.i386               0.7.49-1.fc6           installed       
system-config-printer-libs.i386          0.7.49-1.fc6           installed

How reproducible:

Just try to add a windows xp shared printer in FC6 through system-config-network.

Steps to Reproduce:
1. Install a printer in Windows XP. Share it with right-click.
2. Open system-config-printer in FC6 and try to add the shared printer.
Actual results:

Nothing happens. The printer won't show or open or install.

You get, in the terminal, this message at the exact moment you double click the
workgroup name listed below "share" in the box (when selected Windows printer
via SAMBA").

[root@localhost ~]# system-config-printer 
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 2031,
in on_tvSMBBrowser_cursor_changed
    domain_iter = store.iter_parent (parent_iter)
TypeError: child should be a GtkTreeIter

Expected results:

Be able to see the machine under the windows workgroup name, by clicking on it,
and then the printer shared under it. And then be able to install it in FC6.

PS: I have a VM in my FC6 box, with Windows XP, and it's able to see and use the
shared printer I would like to add in FC6. That certifies the share is ok.

Additional info:

When I do a smbclient -L=//ip I get:

[duli@localhost ~]$ smbclient -L=//
Domain=[RONALDO] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC remoto
        print$          Disk      Drivers de impressora
        HP1000          Printer   hp LaserJet 1000
        ADMIN$          Disk      Administração remota
        C$              Disk      Recurso compartilhado padrão
        shared          Disk      
session request to failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[RONALDO] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server               Comment

        ---------            -------

        Workgroup            Master
        ---------            -------

ps: The share is visible: "HP1000 Printer hp LaserJet 1000".
Comment 1 Luis Felipe Marzagao 2007-01-29 20:33:08 EST
ps: the windows machine that has the shared printer is not in a domain. The
share was made just by a right-click on the printer.
Comment 2 Jani Monoses 2007-03-21 19:41:24 EDT
What is the output of running /usr/share/system-config-printer/pysmb.py
Comment 3 Luis Felipe Marzagao 2007-03-21 21:29:22 EDT
This is the output:

[duli@fc6 ~]$ /usr/share/system-config-printer/pysmb.py
{'IP': '', 'DOMAIN': 'HOMENET'}
Comment 4 Jani Monoses 2007-04-01 05:15:14 EDT
Created attachment 151378 [details]
prevent traceback

This does not dolve detection of printers, but prevents a traceback happening
by not assuming that a cursor change event always happens on a printer share.
The traceback can be reporduced by browsing a host with shares but no printers
aming them. Interestingly I get the traceback but the app does not crash as
with the other reporters.
Comment 5 Tim Waugh 2007-04-02 12:46:56 EDT
Thanks.  I've applied that patch in CVS.
Comment 6 Simon 2007-08-23 08:57:35 EDT
I am having exactly the same problem, although I am using Fedora 7. All software
is fully up to date. I do not get te traceback as I assume my version of
system-config-printer has the above patch.

output of pysmb.py is

{'IP': '', 'DOMAIN': 'SLT'}

The ip is of another computer on the network, though not the one with the
printer I want to add.
Comment 7 Tim Waugh 2007-09-03 12:59:13 EDT
Created attachment 185341 [details]

Please try this pysmb.py -- just run 'python pysmb.py' and tell me what output
you get.

Note You need to log in before you can comment on or make changes to this bug.