Bug 548790

Summary: No error is returned from JobCancel if job not known
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: cups-pk-helperAssignee: Marek Kašík <mkasik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: mkasik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: cups-pk-helper-0.0.4-12.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-10 06:48:59 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:
Attachments:
Description Flags
cups-pk-helper-job-cancel-error.patch none

Description Tim Waugh 2009-12-18 16:00:34 UTC
Created attachment 379237 [details]
cups-pk-helper-job-cancel-error.patch

Description of problem:
The JobCancel method times out if the job is not known.

Version-Release number of selected component (if applicable):
cups-pk-helpers-0.0.4-10.fc12

How reproducible:
100%

Steps to Reproduce:
cd /usr/share/system-config-printer
python
import cupspk
c=cupspk.Connection('localhost',631,0)
c.cancelJob(5000)

Actual results:
Times out.

Expected results:
Immediate failure.

Patch attached.

Comment 1 Fedora Update System 2010-02-23 13:46:54 UTC
cups-pk-helper-0.0.4-12.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/cups-pk-helper-0.0.4-12.fc12

Comment 2 Marek Kašík 2010-02-23 13:53:40 UTC
Hi Tim,

thank you for the patch.

Marek

Comment 3 Fedora Update System 2010-02-24 06:13:03 UTC
cups-pk-helper-0.0.4-12.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-2010-2753

Comment 4 Fedora Update System 2010-03-10 06:48:49 UTC
cups-pk-helper-0.0.4-12.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.