abrt 1.1.1 detected a crash.
cmdline: python /usr/share/system-config-printer/system-config-printer.py
comment: Was renaming Short Cut in Printer setup window and got the error and it crashed.
reason: system-config-printer.py:3137:rename_printer:AttributeError: 'NoneType' object has no attribute 'name'
release: Fedora release 13 (Goddard)
system-config-printer.py:3137:rename_printer:AttributeError: 'NoneType' object has no attribute 'name'
Traceback (most recent call last):
File "/usr/share/system-config-printer/system-config-printer.py", line 3085, in printer_name_edited
self.rename_printer (name, newname)
File "/usr/share/system-config-printer/system-config-printer.py", line 3137, in rename_printer
self.printer.name = old_name
AttributeError: 'NoneType' object has no attribute 'name'
Local variables in innermost frame:
new_name: 'Brother MFC-295CN Network - Generic-text-only-printer'
self: <__main__.GUI instance at 0x9be9a8c>
Created attachment 430172 [details]
OS Release: Fedora release 13 (Goddard)
How to reproduce
I tried to rename my LAN printer using the Printing applet off the GNOME Administration menu. The printer is a Canon MX340. I tried renaming it from "mx340" to "Canon MX340"
I tried renaming it to "Canon-MX340" instead (note: i replaced the space with a dash), and it worked, so I think it's the space in the printer name that causes it to choke.
*** This bug has been marked as a duplicate of bug 625502 ***
Actually this bug is really about crashing after putting some spaces in new printer queue name when renaming. (bug #625502 is probably anything else)
*** Bug 635538 has been marked as a duplicate of this bug. ***
The printer name may not contain spaces, slashes (/), or the pound sign (#).
We can't let the user know directly during typing (as we do that when adding new printer) because gtk.CellRendererText doesn't know 'changed' signal.
I chose the easiest way and erase the disallowed characters from the new name just before renaming.
We can eventually make some small dialog preventing renaming until the new name is correct (that's how the cups web interface works).
system-config-printer-1.2.5-1.fc14 has been submitted as an update for Fedora 14.
system-config-printer-1.2.5-1.fc13 has been submitted as an update for Fedora 13.
system-config-printer-1.2.5-1.fc13 has been pushed to the Fedora 13 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: https://admin.fedoraproject.org/updates/system-config-printer-1.2.5-1.fc13
system-config-printer-1.2.5-6.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
system-config-printer-1.2.5-6.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.