Bug 561182 - [abrt] renaming printer needs error handling
Summary: [abrt] renaming printer needs error handling
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c9e72794
Depends On:
Blocks: 561401
TreeView+ depends on / blocked
 
Reported: 2010-02-02 23:27 UTC by Nivag
Modified: 2010-03-23 02:11 UTC (History)
3 users (show)

Fixed In Version: system-config-printer-1.1.18-2.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 561401 (view as bug list)
Environment:
Last Closed: 2010-03-20 03:39:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.30 KB, text/plain)
2010-02-02 23:28 UTC, Nivag
no flags Details

Description Nivag 2010-02-02 23:27:59 UTC
abrt 1.0.4 detected a crash.

architecture: x86_64
cmdline: python /usr/share/system-config-printer/system-config-printer.py
comment: Probably when I tried to rename the printer as it appeared in the printer manager.
component: system-config-printer
executable: /usr/share/system-config-printer/system-config-printer.py
kernel: 2.6.31.12-174.2.3.fc12.x86_64
package: system-config-printer-1.1.16-8.fc12
release: Fedora release 12 (Constantine)

backtrace
-----
Summary: TBc9e72794 authconn.py:208:_authloop:IPPError: (1030, 'client-error-not-found')

Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 2924, in printer_name_edited
    self.rename_printer (name, newname)
  File "/usr/share/system-config-printer/system-config-printer.py", line 2943, in rename_printer
    self.fillPrinterTab (old_name)
  File "/usr/share/system-config-printer/system-config-printer.py", line 2318, in fillPrinterTab
    printer.getAttributes ()
  File "/usr/lib/python2.6/site-packages/cupshelpers/cupshelpers.py", line 101, in getAttributes
    attrs = self.connection.getPrinterAttributes(self.name)
  File "/usr/share/system-config-printer/authconn.py", line 190, in <lambda>
    return lambda *args, **kwds: self._authloop (fname, fn, *args, **kwds)
  File "/usr/share/system-config-printer/authconn.py", line 208, in _authloop
    result = fn.__call__ (*args, **kwds)
IPPError: (1030, 'client-error-not-found')

Local variables in innermost frame:
c: <cupspk.Connection instance at 0x31d74d0>
retry: False
e: 1030
kwds: {}
self: <authconn.Connection instance at 0x2b90cf8>
args: ('LaserPrinter (saturn)',)
m: 'client-error-not-found'
fname: 'getPrinterAttributes'
fn: <method-wrapper '__call__' of builtin_function_or_method object at 0x2ba3320>

How to reproduce
-----
1.?
2.
3.

Comment 1 Nivag 2010-02-02 23:28:01 UTC
Created attachment 388398 [details]
File: backtrace

Comment 2 Tim Waugh 2010-02-03 15:15:01 UTC
Where is the printer 'LaserPrinter (saturn)'

Comment 3 Tim Waugh 2010-02-03 15:50:49 UTC
Sorry, I meant to say:

Where is the printer 'LaserPrinter (saturn)' in relation to the computer on which you saw this error?

Comment 4 Nivag 2010-02-03 19:39:42 UTC
Saturn is the machine that reported the error with renaming.   I had attempted to rename, but it did not tale effect.

The Laser Printer was previously on jupiter, but I transferred the USB connection to saturn.

Saturn has Fedora 12 and is the one I had previously filed 2 bugs for ('saturn' is the host name reported in the log files), as either the printer would not print at all, or would simply output all the paper blank without actually printing.  Now printing works perfectly from saturn, as far as I can tell...  Jupiter has Fedora 10.

Comment 5 Nivag 2010-02-22 01:58:38 UTC
For me, the problem is fixed, Thanks Tim.

Wanted to close this as fixed, but not sure how to.

I can see how to close it, but not as fixed!

Comment 6 Tim Waugh 2010-02-23 16:54:28 UTC
The fixed package has not yet been released as an update so I think the fact you are no longer seen the problem is not an indication that the bug is fixed yet.

I'm curious as to how the printer's name ws 'LaserPrinter (saturn)' (with a space in it) in the first place.

Comment 7 Nivag 2010-02-23 23:56:06 UTC
In my Bugzilla home page the following section lists the bug,

"Open Issues: Retest
You reported this bug, a change has been committed and you should verify the problem is fixed.

1 bugs found. (show list) (back to top)
[...]
561182
[...]"

My misinterpretation, I thought it had implied that it was my responsibility to close it, as it now worked for me.

////////////

Clicking on the icon for the system-config-printer, and selecting printer properties, settings tab gives me a Description field Where I had typed in 'Brother HL-2040 LaserPrinter (saturn)'.

Or possibly I had highlighted the printer entry and clicked on 'Printer' in the main menu bar and used the 'Rename' entry.  Currently it displays with the string 'HL-2040-series'.

///////////

If the fix has not been released, I'm curious as to why it is now working me.

Comment 8 Tim Waugh 2010-02-24 09:05:03 UTC
Hmm, that seems to be a bugzilla bug.  MODIFIED means: "...the code has been checked into CVS. From here the bug will automatically transition to ON_QA when the package has been built...".  Once it goes to ON_QA, *then* it can be tested.

I think the reason you aren't seeing the problem any more is because you no longer have an impossible name for the printer to start with.  You cannot have spaces in the name -- CUPS won't let you -- and yet you did. :-)

Comment 9 Fedora Update System 2010-03-10 10:52:55 UTC
system-config-printer-1.1.18-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/system-config-printer-1.1.18-1.fc11

Comment 10 Fedora Update System 2010-03-10 11:53:43 UTC
system-config-printer-1.1.18-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/system-config-printer-1.1.18-1.fc12

Comment 11 Fedora Update System 2010-03-11 07:14:16 UTC
system-config-printer-1.1.18-1.fc12 has been pushed to the Fedora 12 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.1.18-1.fc12

Comment 12 Fedora Update System 2010-03-11 07:16:11 UTC
system-config-printer-1.1.18-1.fc11 has been pushed to the Fedora 11 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.1.18-1.fc11

Comment 13 Fedora Update System 2010-03-16 00:38:03 UTC
system-config-printer-1.1.18-1.fc11 has been pushed to the Fedora 11 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.1.18-1.fc11

Comment 14 Fedora Update System 2010-03-16 00:52:14 UTC
system-config-printer-1.1.18-1.fc12 has been pushed to the Fedora 12 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.1.18-1.fc12

Comment 15 Fedora Update System 2010-03-18 03:14:22 UTC
system-config-printer-1.1.18-2.fc12 has been pushed to the Fedora 12 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.1.18-2.fc12

Comment 16 Fedora Update System 2010-03-18 03:28:32 UTC
system-config-printer-1.1.18-2.fc11 has been pushed to the Fedora 11 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.1.18-2.fc11

Comment 17 Fedora Update System 2010-03-20 03:38:52 UTC
system-config-printer-1.1.18-2.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2010-03-23 02:10:58 UTC
system-config-printer-1.1.18-2.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


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