Bug 609515

Summary: [abrt] system-config-printer-1.2.3-3.fc14: authconn.py:102:set_auth_info:TypeError: Gtk.Entry.set_text() argument 1 must be string, not None
Product: [Fedora] Fedora Reporter: Horst H. von Brand <vonbrand>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: claudiorodrigo, jpopelka, twaugh, yantrikig
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:bd4424c7
Fixed In Version: system-config-printer-1.2.4-2.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-15 05:28:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace none

Description Horst H. von Brand 2010-06-30 13:24:22 UTC
abrt version: 1.1.5
architecture: x86_64
cmdline: python /usr/share/system-config-printer/system-config-printer.py
comment: The above because the HP LaserJet 3020 ran low on toner, but changing the toner didn't get it to print. So I wanted to delete + recreate it.
component: system-config-printer
executable: /usr/share/system-config-printer/system-config-printer.py
kernel: 2.6.35-0.2.rc3.git0.fc14.x86_64
package: system-config-printer-1.2.3-3.fc14
reason: authconn.py:102:set_auth_info:TypeError: Gtk.Entry.set_text() argument 1 must be string, not None
release: Fedora release 14 (Rawhide)
time: 1277904110
uid: 500

backtrace
-----
authconn.py:102:set_auth_info:TypeError: Gtk.Entry.set_text() argument 1 must be string, not None

Traceback (most recent call last):
  File "/usr/share/system-config-printer/asyncipp.py", line 180, in prompt_auth
    self._auth_handler (prompt, self._conn, method, resource)
  File "/usr/share/system-config-printer/asyncipp.py", line 446, in auth_handler
    d.set_auth_info ([self._user, ''])
  File "/usr/share/system-config-printer/authconn.py", line 102, in set_auth_info
    self.field_entry[i].set_text (auth_info[i])
TypeError: Gtk.Entry.set_text() argument 1 must be string, not None

Local variables in innermost frame:
i: 0
self: <AuthDialog object at 0x238ac80 (GtkDialog at 0x23c5a50)>
auth_info: [None, '']

How to reproduce
-----
1. Deleted a networked printer
2. Started to recreate it
3.

Comment 1 Horst H. von Brand 2010-06-30 13:24:24 UTC
Created attachment 427995 [details]
File: backtrace

Comment 2 Jiri Popelka 2010-06-30 14:28:19 UTC
If you are able to reproduce it,
can you start the program from command line
'system-config-printer --debug'
and post the output here ?
thanks

Comment 3 Tim Waugh 2010-06-30 15:07:51 UTC
Not sure about how to reproduce it but this is happening because we left self._user as None in the AuthDialog class.  We need to fill in *something* for the username field in the authentication dialog, so before calling set_auth_info we should check if it's None and, if so, set it to cups.getUser().

Comment 5 Horst H. von Brand 2010-07-01 23:07:54 UTC
Sorry, but I fixed the problem that gave me this. We used to have a HP LaserJet 3020 as stated, but it was changed for a HP LaserJet M1522nf MFP. When that one ran low on toner, the toner was changed but CUPS had wedged somehow (AFAIU, it tried to inquire the toner status via whatever the old one used, and the new one didn't understand) I tried to unwedge by deleting/recreating the printer, and there it crashed. Afterwards creating the new printer worked fine.

Comment 6 yantrikig 2010-07-19 00:14:08 UTC
Package: system-config-printer-1.2.3-3.fc13
Architecture: i686
OS Release: Fedora release 13 (Goddard)


How to reproduce
-----
1. Started printer configuration.
2. Select add network printer
3.

Comment 7 Bug Zapper 2010-07-30 12:19:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle.
Changing version to '14'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 8 Fedora Update System 2010-08-26 11:53:00 UTC
system-config-printer-1.2.4-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/system-config-printer-1.2.4-1.fc13

Comment 9 Fedora Update System 2010-08-26 11:55:32 UTC
system-config-printer-1.2.4-1.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/system-config-printer-1.2.4-1.fc14

Comment 10 Fedora Update System 2010-08-26 18:35:53 UTC
system-config-printer-1.2.4-1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update system-config-printer'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-printer-1.2.4-1.fc14

Comment 11 Fedora Update System 2010-09-13 18:08:02 UTC
system-config-printer-1.2.4-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/system-config-printer-1.2.4-2.fc14

Comment 12 Fedora Update System 2010-09-15 05:27:39 UTC
system-config-printer-1.2.4-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2010-09-15 07:17:00 UTC
system-config-printer-1.2.4-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.