Created attachment 348100 [details] Proposed patch Description of problem: This is the same as bug #432001 for enable/disable printer. When a job with multiple files is in the queue when the printer is disabled, the job gets deleted when the printer is enabled again and the job is not printed. Version-Release number of selected component (if applicable): cups-1.3.7-8.el5_3.6 How reproducible: 100% reproducible Steps to Reproduce: 1) Setup a printer: # /usr/sbin/lpadmin -p testprinter -E -v socket://127.0.0.1:9100 -m textonly.ppd 2) Create a few files to print: # echo "test print 1" > print1.txt # echo "test print 2" > print2.txt 3) Print two or more files by using the lp command: # lp -d testprinter print1.txt print2.txt request id is testprinter-1 (2 file(s)) 4) Make sure the jobs are still listed # lpstat -o testprinter-483 ofourdan 2048 Tue 16 Jun 2009 01:38:36 PM BST 5) Disable the printer # cupsdisable testprinter 6) Make sure the jobs are still listed # lpstat testprinter testprinter-483 ofourdan 2048 Tue 16 Jun 2009 01:38:36 PM BST 7) Re-enable the printer # cupsenable testprinter 8) Check for the job # lpstat testprinter Actual results: Jobs has been de-queued, lpstat returns nothing Expected results: # lpstat testprinter testprinter-483 ofourdan 2048 Tue 16 Jun 2009 01:38:36 PM BST Additional info: This is the same as bug #432001, the fix is very similar. Proposed patch attached. PS: the bug seems to be present upstream too (at least in cups-1.3.10)
Thanks. Reported upstream.
Accepted upstream.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0210.html