Bug 543006 - add-printer method fails when using ppd-name and not device-uri
Summary: add-printer method fails when using ppd-name and not device-uri
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cups-pk-helper
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Marek Kašík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 526442
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-01 13:24 UTC by Tim Waugh
Modified: 2009-12-05 00:00 UTC (History)
1 user (show)

Fixed In Version: 0.0.4-9.fc12
Clone Of: 526442
Environment:
Last Closed: 2009-12-05 00:00:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tim Waugh 2009-12-01 13:24:17 UTC
The fixed package for Fedora 12 was never tagged.  Please make an update for it.

+++ This bug was initially created as a clone of Bug #526442 +++

Description of problem:
The device-uri attribute is not mandatory when using CUPS-Add-Printer, but cups-pk-helper-mechanism always fills in that field even when blank.  This causes the IPP request to fail.

Version-Release number of selected component (if applicable):
cups-pk-helper-0.0.4-7.fc12.x86_64

How reproducible:
100%

Steps to Reproduce:
1.cd /usr/share/system-config-printer
2.python
import authconn
authconn.set_debugging(True)
c=authconn.Connection()
c.addPrinter("foo", ppdname="raw")
3.Provide root password when asked by polkit authentication agent

Actual results:
An IPP authentication window is presented, and this debugging output can be seen in the terminal:

Connected as user twaugh
Authentication pass: 1
Authentication: password callback set
PolicyKit call to PrinterAdd did not work: client-error-not-possible
Authentication pass: 2
Forbidden: True
Authentication: Try as root
Connected as user root
PolicyKit call to PrinterAdd did not work: client-error-not-possible
Got password callback
Authentication pass: 3
Forbidden: False
cancelled
PolicyKit call to PrinterAdd did not work: client-error-not-possible

--- Additional comment from twaugh on 2009-09-30 06:30:27 EDT ---

Created an attachment (id=363169)
cups-pk-helper-ppd-name.patch

This patch fixes it for me.

--- Additional comment from twaugh on 2009-09-30 06:31:03 EDT ---

This affects F-11, F-12 and devel.

--- Additional comment from mkasik on 2009-10-02 03:38:01 EDT ---

Hi Tim,

thank you for the patch. I committed it to F-11, F-12 and devel.

Marek

--- Additional comment from updates on 2009-10-02 10:40:48 EDT ---

cups-pk-helper-0.0.4-5.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/cups-pk-helper-0.0.4-5.fc11

--- Additional comment from updates on 2009-10-03 15:11:28 EDT ---

cups-pk-helper-0.0.4-5.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 cups-pk-helper'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10230

--- Additional comment from twaugh on 2009-10-05 07:47:29 EDT ---

Works for me.  Thanks.

--- Additional comment from updates on 2009-10-20 20:40:41 EDT ---

cups-pk-helper-0.0.4-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 1 Fedora Update System 2009-12-02 16:46:13 UTC
cups-pk-helper-0.0.4-8.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/cups-pk-helper-0.0.4-8.fc12

Comment 2 Marek Kašík 2009-12-02 16:49:04 UTC
Hi,

thank you for your reminder.
I pushed it into Testing. I'll push it into Stable together with fix of the bug #543085.

Marek

Comment 3 Fedora Update System 2009-12-03 13:49:05 UTC
cups-pk-helper-0.0.4-9.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/cups-pk-helper-0.0.4-9.fc12

Comment 4 Fedora Update System 2009-12-04 23:49:46 UTC
cups-pk-helper-0.0.4-8.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 cups-pk-helper'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12658

Comment 5 Fedora Update System 2009-12-05 00:00:39 UTC
cups-pk-helper-0.0.4-9.fc12 has been pushed to the Fedora 12 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.