[Hardy SRU request] foomatic-rip does not handle enumerated-choice options with choices "True" and "False" correctly, leading to Duplex on most Ricoh printers not working

Bug #219999 reported by Till Kamppeter
10
Affects Status Importance Assigned to Milestone
foomatic-filters (Ubuntu)
Fix Released
High
Lars Karlitski
Hardy
Fix Released
High
Till Kamppeter
Intrepid
Fix Released
High
Lars Karlitski

Bug Description

Binary package hint: foomatic-filters

George Liu from Ricoh reports that on most Ricoh printers Duplex does not work when the "Collate" option is set.

See also http://forums.linux-foundation.org/read.php?34,5425

I can reproduce this also on Ubuntu Hardy following the steps which George has sent to me e-mail (see below) and using the files which George has given to me (attached). I have fixed the bug upstream and I am reporting it here to request an SRU.

See the steps to reproduce below. The impact is that Duplex will not work correctly on most Ricoh printers, and there printing collated copies with Duplex is rather common, as these printers are big network multi-function devices (like office copiers).

Note that due to Intrepid not opened yet there is no fixed version available for Intrepid. The fix is already done upstream and there confirmed by George Liu. As soon as Intrepid opens I will make a new foomatic-filters package using the current upstream source code.

Packages with the fix applied:

http://www.linux-foundation.org/~till/tmp/ubuntu/hardy/foomatic-filters/

debdiff attached.

-------------------
Anyway, here's the detailed step of what I did.

1. Download foomatic-filter package (20080418) and install foomatic-rip.
Validated that the new foomatic-rip has a new installation date. Also use `which foomatic` to make sure it's the one I'm using

2. Install printer using the attached PPD file. (I copied the PPD file from /etc/cups/ppd)
Description: 411DN_RIP
Location:
Make and Model: Ricoh Aficio SP 4110N PS
Printer State: idle, accepting jobs, published.
Device URI: file:/tmp/print/411DN.ps

3. lp -d 411DN_RIP -n 2 -o Duplex=DuplexNoTumble -o Collate=true 3pages.ps
3pages.ps and the generated postscript file (411DN.ps) attached

4. lp -d 3500PXL_IPP -o raw 411DN.ps
Two copies of the job were printed without duplex.

5. Opened 411DN.ps, there's Collate command under each page
%%Page: 1 1
[{
%%BeginFeature: *Collate True
<</Collate true
  /CollateDetails <</Type 6 /AlignSet true>>
  >>setpagedevice
%%EndFeature

Hope that helps
George

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Changed in foomatic-filters:
importance: Undecided → High
milestone: none → ubuntu-8.04
milestone: ubuntu-8.04 → none
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Here are the package source files with the fix:

http://www.linux-foundation.org/~till/tmp/ubuntu/hardy/foomatic-filters/

and the debdiff is also attached.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please consider this fix for Hardy, as most users of Ricoh printers have currently broken Duplex printing. And as Ricoh printers are large-scale laser multi-function devices (like office copiers) it is very common to print multiple copies with Collate and duplex options set on them.

Changed in foomatic-filters:
status: New → In Progress
Martin Pitt (pitti)
Changed in foomatic-filters:
assignee: nobody → till-kamppeter
milestone: none → ubuntu-8.04.1
Revision history for this message
Martin Pitt (pitti) wrote :

Till, can you please re-prepare this as an SRU? It's too late to get this into Hardy now, it's not a bug that breaks installation. An SRU for it is fine.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
description: updated
Revision history for this message
Martin Pitt (pitti) wrote :

Uploaded to hardy-proposed. However, we won't actually accept it until hardy is officially released.

Since this touches a rather general package, which isn't Ricoh specific, which other tests have been done with that version? I. e. was it tested on a couple of other printers, to ensure that there are no regressions?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I am doing my usual printing with the modified foomatic-rip and it did not occur any regression yet.

The fix is needed for all printers where

- The PPD file requires foomatic-rip (see "*cupsFilter: ..." line).
- There is an enumerated-choice option which has choices named "True" and/or "False" ("PickOne" option in PPD file).

Currently, there are probably only Ricoh PPDs fulfilling this, but as the Adobe specs do not forbid such options, it is not excluded that there will appear other PPDs needing this fix.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please anyone who reads this, test the package I have supplied on

http://www.linux-foundation.org/~till/tmp/ubuntu/hardy/foomatic-filters/binary/

and see whether it does not break anything for your, and in case you have a Ricoh (or OEM) printer whether the bug gets fixed for your. Thanks.

Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into hardy-proposed, please test.

Changed in foomatic-filters:
status: In Progress → Fix Committed
Revision history for this message
Steve Langasek (vorlon) wrote :

AFAIK, 'fix committed' is not correct here for intrepid at this time, setting back to 'triaged'

Changed in foomatic-filters:
milestone: ubuntu-8.04.1 → none
status: Fix Committed → Triaged
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I by myself have tested whether this package fixes the problem already before posting it here, and in terms of possible regressions on other printers I have done my daily printing with the patched foomatic-rip and up to now everything works as before for me.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The fix for Intrepid will soon be done by updating the foomatic-filters package to the new 4.0 generation, a foomatic-rip re-implementation in C, mainly to support PDF instead of PostScript as standard print job format, but also to support CUPS' custom options, improve performance, and allow use of C libraries.

Revision history for this message
georgeliu (george-liu-ricoh-tech) wrote :

Ubuntu 8.04 test report for SRU of foomatic-filters 3.0

Guidelines
1. Verify that the bug “duplex not working when collate=true” is fixed in Ubuntu Hardy Stable Release update of foomatic-filters 3.0.

2. Test basic printing (Color mode, Resolution, Margin, Duplex, Collate) in Ubuntu 8.04.
Examine Postscript Driver print out for different job options

Equipment
Ricoh Aficio Color5560

Test Procedure
1. Examine Postscript Driver print out for different job options
a. Test Duplex when collate is set.
lp -d Ricoh_Aficio_C5560_PS -n 2 -o Duplex=DuplexTumble -o collate=true ../../sample/3pages.ps
lp -d Ricoh_Aficio_C5560_PS -n 2 -o Duplex=DuplexNoTumble -o collate=true ../../sample/3pages.ps
lp -d Ricoh_Aficio_C5560_PS -n 2 -o Duplex=None -o collate=true ../../sample/3pages.ps

b. Verify multiple copies
lp -d Ricoh_Aficio_C5560_PS -n 2 ../../sample/2pages.ps
lp -d Ricoh_Aficio_C5560_PS -n 2 -o collate=true ../../sample/2pages.ps

c. Test Duplex
lp -d Ricoh_Aficio_C5560_PS -o Duplex=DuplexNoTumble ../../sample/3pages.ps

d. Test basic printing, pagesize, colormode, resolution, text margin.
lp –d Ricoh_Aficio_C5560_PS –o PageSize=Letter –o Resolution=600dpi ../../sample/textmargin.txt
lp –d Ricoh_Aficio_C5560_PS –o PageSize=Letter –o ColorModel=CMYK –o Resolution=600dpi ../../sample/testprint.ps
lp –d Ricoh_Aficio_C5560_PS –o PageSize=Letter –o ColorModel=Gray –o Resolution=600dpi ../../sample/testprint.ps
lp –d Ricoh_Aficio_C5560_PS –o PageSize=A4 –o Resolution=600dpi ../../sample/textmargin.txt
lp –d Ricoh_Aficio_C5560_PS –o PageSize=A4 –o ColorModel=CMYK –o Resolution=600dpi ../../sample/testprint.ps
lp –d Ricoh_Aficio_C5560_PS –o PageSize=A4 –o ColorModel=Gray –o Resolution=600dpi ../../sample/testprint.ps

2. Examine PXL Driver print out for different job options
a. Test Duplex when collate is set
lp -d Ricoh_Aficio_C5560_PXL -n 2 -o Duplex=DuplexTumble -o collate=true ../../sample/3pages.ps
lp -d Ricoh_Aficio_C5560_PXL -n 2 -o Duplex=DuplexNoTumble -o collate=true ../../sample/3pages.ps
lp -d Ricoh_Aficio_C5560_PXL -n 2 -o Duplex=None -o collate=true ../../sample/3pages.ps

b. Verify multiple copies
The number of copies work only when collate is set to true or else it just print 1 copy.
lp -d Ricoh_Aficio_C5560_PXL -n 2 -o collate=true ../../sample/2pages.ps

e. Test Duplex
lp -d Ricoh_Aficio_C5560_PXL -o Duplex=DuplexNoTumble ../../sample/3pages.ps
lp -d Ricoh_Aficio_C5560_PXL -n 2 -o Duplex=DuplexTumble ../../sample/3pages.ps

f. Test basic printing, pagesize, colormode, resolution, text margin.
lp –d Ricoh_Aficio_C5560_PXL –o PageSize=Letter –o Resolution=600dpi ../../sample/textmargin.txt
lp –d Ricoh_Aficio_C5560_PXL –o PageSize=Letter –o ColorModel=Color –o Resolution=600dpi ../../sample/testprint.ps
lp –d Ricoh_Aficio_C5560_PS –o PageSize=Letter –o ColorModel=Grayscale –o Resolution=600dpi ../../sample/testprint.ps

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Thank you very much for your tests, George.

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in foomatic-filters:
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Is this still an issue with 4.0 in intrepid? Please apply the fix to intrepid, or close the task as fixed if 4.0 is not affected.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The new foomatic-rip 4.0 is already in Intrepid for some weeks. I simply forgot to close the Interpid task here that time.

According to the developer of this foomatic-rip version the problem is fixed.

Changed in foomatic-filters:
status: Triaged → Fix Released
Revision history for this message
mabawsa (mabawsa) wrote :

I upgraded to intrepid and I cannot duplex to a Ricoh Aficio 2060 and an Aficio MPC 3000. It was working well in hardy prior to the upgrade. I have all the latest updates and foomatic 4. How can I test if it is a similar bug?

Changed in foomatic-filters:
assignee: till-kamppeter → larsuebernickel
status: Fix Released → New
Changed in foomatic-filters:
status: Fix Released → New
assignee: till-kamppeter → larsuebernickel
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Lars, the bug originally reported here is definitely fixed. In the PostScript workflow foomatic-rip 4.0 has also the correct output. The problem reported by mabawsa is a new problem, specific to the PDF workflow.

Changed in foomatic-filters:
status: New → Fix Released
status: New → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

mabawsa, your problem is bug 299918, please follow the discussion there.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.