Version: 0.11.2 (using KDE 4.5.2) OS: Linux It seems that cups refuses print jobs from okular when the page orientation option in kde printer configuration dialog (printer task option) is changed from the default "portrait no rotation" to another not null orientation (90/180/270). The error line in the cups erro log is : Print-Job client-error-bad-request: Bad job-sheets value ""! In this case it will be possible to get the print job accepted only in changing the cover page options in the okular print dialog to anything other than none. In fact, when no cover pages are requested, okular should send the string "," instead of "" , as cups job-sheets option (the "," separator is mandatory for cups). Gwenview does this correctly. Firefox has the same problem as okular. Strangely this problem does not show up when page orientation is 0°. Reproducible: Always Steps to Reproduce: 1. set up a page orientation of 90/270/180° in the job tasks options of kde printer configurator 2. use no cover pages while printing Actual Results: The print job is rejected silently Cups error log in debug mode shows : Print-Job client-error-bad-request: Bad job-sheets value ""! Expected Results: Print job accepted and processed. OS: Linux (x86_64) release 2.6.35-22-generic Compiler: cc
Created attachment 52684 [details] orientation option in kde printing configurator
Created attachment 52685 [details] okular default options for cover pages
Okular command line when printing. okular(31823)/okular (app) Okular::FilePrinter::doPrintFiles: Executing "lpr" with arguments ("-P", "DESKJET_970C", "-#1", "-J", "toto.pdf", "-o", "media=A4", "-o", "portrait", "-o", "sides=one-sided", "-o", "outputorder=normal", "-o", "Collate=False", "-r", "/tmp/kde-pascal/okularG31823.ps") lpr: Bad job-sheets value ""!
Well ok I found the real culprit, it is the kde printer configuration panel which does not correctly copy the JobSheets options back to cups printers.conf configuration file. pascal@minipc:/etc/cups$ sudo diff -u ~/tmp/printers.conf.before ~/tmp/printers.conf.after --- /home/pascal/tmp/printers.conf.before 2010-10-19 20:14:44.190758002 +0200 +++ /home/pascal/tmp/printers.conf.after 2010-10-19 20:12:58.530757999 +0200 @@ -7,16 +7,17 @@ MakeModel HP Deskjet 970c, hpcups 3.10.6 DeviceURI dnssd://usbprinter._printer._tcp.local/ State Idle -StateTime 1287512031 +StateTime 1287509009 Type 36876 Filter application/vnd.cups-raw 0 - Filter application/vnd.cups-raster 0 hpcups Accepting Yes Shared Yes -JobSheets none none +JobSheets QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy retry-job +Option orientation-requested 3 </Printer> pascal@minipc:/etc/cups$ ------------------------------------------------------------------------ Is is possible to reassign this bug to the correct product ? And change the title to : "kde printer configurator corrupts JobSheets option in cups printer.conf configuration file."
the product could be system-config-printer-kde
*** Bug 257178 has been marked as a duplicate of this bug. ***
The bug 257178 is a duplicate of this one and I can confirm the issue, not only with okular but also with Firefox (whereas Krita and Kwrite work for example). I fail to understand why some applications work. Appending none to the JobSheets configuration file's line doesn't break the working applications.
The bug is also mentioned on https://bugs.launchpad.net/kdeadmin/+bug/403169
Still onfirmed with kde 4.5.5
SVN commit 1220673 by jriddell: Don't mark as changed when adding new job options, causes UI not to be filled (will be marked as changed when editing the options instead) BUG:254672 M +1 -1 system-config-printer-kde.py WebSVN link: http://websvn.kde.org/?view=rev&revision=1220673
SVN commit 1220674 by jriddell: Backport revision 1220673 Don't mark as changed when adding new job options, causes UI not to be filled (will be marked as changed when editing the options instead) BUG:254672 M +1 -1 system-config-printer-kde.py WebSVN link: http://websvn.kde.org/?view=rev&revision=1220674