Bug 507489

Summary: Changed device URI not reflected in properties dialog
Product: [Fedora] Fedora Reporter: Christoph Wickert <christoph.wickert>
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: 11CC: rjesup, twaugh
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.1.8-6.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-22 22:07:01 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:

Description Christoph Wickert 2009-06-23 00:15:35 UTC
Description of problem:
The device URI of an installed printer cannot be changed.

Version-Release number of selected component (if applicable):
system-config-printer-1.1.7-4.fc11.x86_64

How reproducible:
always

Steps to Reproduce:
1. Start s-c-p with at least one installed printer
2. Select it -> Properties -> Device URI -> Change...
3. Enter root password (causes SELinux denial, but this is not the problem since I'm in permissive mode)
4. Change the URI and hit Apply
  
Actual results:
s-c-p asks for root pw a second time (sucks) but nothing happens

Expected results:
Dialog should close and URI should get updated.

Comment 1 Christoph Wickert 2009-06-23 00:26:45 UTC
I just realized this is a crasher: As you hit the Apply button on the console appears:

Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 6536, in on_btnNPApply_clicked
    self.mainapp.cups.addPrinter(name, device=uri)
  File "/usr/share/system-config-printer/authconn.py", line 183, in <lambda>
    return lambda *args, **kwds: self._authloop (fname, fn, *args, **kwds)
  File "/usr/share/system-config-printer/authconn.py", line 198, in _authloop
    result = fn.__call__ (*args, **kwds)
  File "/usr/share/system-config-printer/cupspk.py", line 494, in addPrinter
    *args, **kwds)
  File "/usr/share/system-config-printer/cupspk.py", line 230, in _call_with_pk_and_fallback
    debugprint ('PolicyKit call to %s did not work: %s' %
NameError: global name 'debugprint' is not defined

Comment 2 Christoph Wickert 2009-06-23 00:35:47 UTC
Ok, forget about comment # 2. I updated to system-config-printer-1.1.8-1.fc11  from updates testing and the python traceback is gone. The Device URI dialog gets closed now, but the URI is not getting updated.

If I manually enter the new URI in the Properties dialog and hit apply an error message appears: "There was an error during the CUPS operation: 'client-error-not-possible'"

Comment 3 Tim Waugh 2009-06-23 09:30:26 UTC
Thanks for the report, and especially thanks for trying the test update.

After the dialog closes, the printer properties dialog is still showing the old device URI.  If you cancel that dialog and double-click on the printer again you should see the new URI; i.e. the printer properties dialog is not getting updated after the URI is changed.

I'm not seeing the other problem you mention (client-error-not-possible) -- would you mind opening a separate bug report for that?  Seems to need more investigation.

Comment 4 Tim Waugh 2009-06-23 11:29:31 UTC
Looks like this display issue was fixed by a change I made upstream yesterday.

Comment 5 Tim Waugh 2009-06-25 15:51:59 UTC
*** Bug 508086 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Update System 2009-06-30 21:23:24 UTC
system-config-printer-1.1.8-3.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/F11/FEDORA-2009-6777

Comment 7 Fedora Update System 2009-07-11 17:10:14 UTC
system-config-printer-1.1.8-5.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2009-07-20 09:23:57 UTC
system-config-printer-1.1.8-6.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/system-config-printer-1.1.8-6.fc11

Comment 9 Fedora Update System 2009-07-22 22:06:14 UTC
system-config-printer-1.1.8-6.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.