Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 83292

Summary: Python error when configuring SMB printer
Product: [Retired] Red Hat Public Beta Reporter: Felipe Alfaro Solana <felipe_alfaro>
Component: redhat-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: phoebe   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-02-01 23:51:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Felipe Alfaro Solana 2003-02-01 17:47:35 UTC
Description of problem:
-------------------------------
On Phoebe2, I get the following error logged to the console when trying to
configure a Networked Windows (SMB) printer:

Traceback (most recent call last):
  File "/usr/share/printconf/util/addQueue.py", line 822, in smb_specify_clicked
    machine, sharename = match.groups ()
AttributeError: 'NoneType' object has no attribute 'groups'

Version-Release number of selected component (if applicable):
----------------------------------------------------------------------------------
redhat-config-printer-0.6.37-1

How reproducible:
-------------------------
Always (only seems to happen with SMB printers and not CUPS/IPP printers)

Steps to Reproduce:
----------------------------
1. Open a terminal
2. Su to root
3. Run "redhat-config-printer"
4. Choose to add a Networked Windows (SMB) printer.
5. Click the "Specify" button to enter the following authentication information
(don't mind if the host, username or else are invalid):
6. Leave Workgroup blank.
7. Enter a valid host name for a Windows print server
8. Enter a valid queue name
9. Enter a Username that contains blank spaces (in my case, it was "Felipe
Alfaro Solana")
10. Enter something as Password
11. Click OK
12. The error message described above is logged to the console and the operation
fails.

Actual results:
--------------------
Can't add a Windows printer.

Expected results:
-----------------------
Some Python problems appear to  keep me from adding a Windows printer.

Additional info:
---------------------
Remote printer server is a Spanish Windows XP Professional, Service Pack 1.
Remote queue is an HP DeskJet 970Cxi USB printer with a queue name of "HP".
My Windows box is called "FAB".
The Username required to print is "Felipe Alfaro Solana".

Comment 1 Tim Waugh 2003-02-01 23:51:49 UTC
Please try the latest version from rawhide, which should fix this problem.