Bug 584806

Summary: Get-Jobs request no longer returns any attributes
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
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: 13CC: jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: system-config-printer-1.1.19-3.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-04 18:53:49 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 Tim Waugh 2010-04-22 13:15:16 UTC
Description of problem:
The Get-Jobs IPP request now only returns the job-id attribute for each job.  Works fine with CUPS-1.4.2.

Version-Release number of selected component (if applicable):
cups-1.4.3-6.fc13

How reproducible:
100%

Steps to Reproduce:
1.python -c 'import cups;c=cups.Connection();print c.getJobs(which_jobs="all")'

Actual results:
Just a list of job IDs.

Expected results:
Lots of attributes for each job ID.

Comment 2 Tim Waugh 2010-04-22 13:24:24 UTC
OK, this is an intentional change in CUPS from STR #3383:

  if ((ra = create_requested_array(con->request)) == NULL &&
      !ippFindAttribute(con->request, "requested-attributes", IPP_TAG_KEYWORD))
  {
   /*
    * IPP conformance - Get-Jobs has a default requested-attributes value of
    * "job-id" and "job-uri".
    */

    ra = cupsArrayNew((cups_array_func_t)strcmp, NULL);
    cupsArrayAdd(ra, "job-id");
    cupsArrayAdd(ra, "job-uri");
  }

So we'll need to add an optional named parameter "requested_attributes" to the Python bindings and get system-config-printer's monitor module to use it.

Comment 3 Tim Waugh 2010-04-22 15:14:35 UTC
Will also affect F-12 when it is updated to cups >= 1.4.3.

Comment 4 Tim Waugh 2010-04-22 15:21:29 UTC
The specific problem this causes for system-config-printer is in the applet: if there are jobs queued for a printer, and that printer has an error, the error is not shown to the user.

Comment 5 Fedora Update System 2010-05-07 15:54:42 UTC
system-config-printer-1.2.2-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/system-config-printer-1.2.2-1.fc13

Comment 6 Fedora Update System 2010-05-08 16:09:55 UTC
system-config-printer-1.2.2-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: http://admin.fedoraproject.org/updates/system-config-printer-1.2.2-1.fc13

Comment 7 Fedora Update System 2010-05-13 19:35:23 UTC
system-config-printer-1.2.2-2.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: http://admin.fedoraproject.org/updates/system-config-printer-1.2.2-2.fc13

Comment 8 Fedora Update System 2010-05-18 14:51:37 UTC
system-config-printer-1.1.19-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/system-config-printer-1.1.19-1.fc11

Comment 9 Fedora Update System 2010-05-18 14:53:50 UTC
system-config-printer-1.1.19-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/system-config-printer-1.1.19-1.fc12

Comment 10 Fedora Update System 2010-05-19 19:16:38 UTC
system-config-printer-1.1.19-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.19-1.fc11

Comment 11 Fedora Update System 2010-05-19 19:21:13 UTC
system-config-printer-1.1.19-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.19-1.fc12

Comment 12 Fedora Update System 2010-06-03 18:08:58 UTC
system-config-printer-1.2.2-4.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: http://admin.fedoraproject.org/updates/system-config-printer-1.2.2-4.fc13

Comment 13 Fedora Update System 2010-06-04 18:53:11 UTC
system-config-printer-1.2.2-4.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2010-07-27 02:51:34 UTC
system-config-printer-1.1.19-3.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.