Bug 755913 - stacktrace when firewall not available
Summary: stacktrace when firewall not available
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-22 12:04 UTC by Mads Kiilerich
Modified: 2011-11-30 10:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-30 10:00:52 UTC
Type: ---


Attachments (Terms of Use)

Description Mads Kiilerich 2011-11-22 12:04:03 UTC
File "/usr/share/system-config-printer/newprinter.py", line 1643, in on_firewall_read
    ipp_allowed = f.check_ipp_client_allowed ()
File "/usr/share/system-config-printer/firewall.py", line 114, in check_ipp_client_allowed
    self.ALLOW_IPP_CLIENT]))
File "/usr/share/system-config-printer/firewall.py", line 97, in _check_any_allowed
    (args, filename) = self._get_fw_data ()
TypeError: 'NoneType' object is not iterable

system-config-printer-libs-1.3.7-2.fc16.x86_64

Comment 3 Tim Waugh 2011-11-22 14:37:36 UTC
Is this repeatable?  Can you please try running this command from the command line:

system-config-printer --debug

and pasting the output in here?

Comment 4 Mads Kiilerich 2011-11-22 14:47:25 UTC
[dev@fladmast ~]$ system-config-printer --debug
+<NewPrinterGUI object at 0x2591500 (newprinter+NewPrinterGUI at 0x264a820)>
Connected as user dev
+<PrinterPropertiesDialog object at 0x259ba50 (printerproperties+PrinterPropertiesDialog at 0x2718e20)>
<authconn.Connection instance at 0x258d9e0>: Operation += 'obtaining queue details'
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
<authconn.Connection instance at 0x258d9e0>: Operation ended
+<ppdcache.PPDCache instance at 0x25a1a70>
refresh
Created subscription 5, events=['printer-added', 'printer-deleted', 'printer-state-changed']
Next notifications fetch in 1s
update_jobs
get_notifications
update_jobs
Next notifications fetch in 60s
Connected as user dev
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
Examining firewall
Firewall data obtained
Caught non-fatal exception.  Traceback:
File "/usr/share/system-config-printer/newprinter.py", line 1643, in on_firewall_read
    ipp_allowed = f.check_ipp_client_allowed ()
File "/usr/share/system-config-printer/firewall.py", line 114, in check_ipp_client_allowed
    self.ALLOW_IPP_CLIENT]))
File "/usr/share/system-config-printer/firewall.py", line 97, in _check_any_allowed
    (args, filename) = self._get_fw_data ()
TypeError: 'NoneType' object is not iterable
Continuing anyway..
Firewall all OK; fetching devices

Comment 5 Tim Waugh 2011-11-28 11:59:04 UTC
Are you able to try the current upstream version of system-config-printer (sorry, 33Mb download)?  You can do it like this:

git clone git://git.fedorahosted.org/git/system-config-printer.git
cd system-config-printer
./bootstrap
./configure
make run

I'd like to see the debugging output from that.

No problem if not -- let me know and I can build a test package for you to try.

Comment 6 Mads Kiilerich 2011-11-29 18:29:12 UTC
I can no longer reproduce this, so I guess this report should be closed as invalid ... unless you want to add some extra safeguards anyway ... which it seems like you already have done.


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