Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Printing a banner before a PCL file causes only the banner to be
printed.
Version-Release number of selected component (if applicable):
cups-2.2.6-38.el8
How reproducible:
100%
Steps to Reproduce:
1. lpadmin -p test -m foomatic:HP-LaserJet_4Si-ljet4.ppd -v file:/tmp/test.out -E
2. lp -d test -o job-sheets=standard <some-pcl-file>
Actual results:
<some-pcl-file> isn't printed. Only the banner page is printed.
Expected results:
Both banne and PCL file should print.
Additional info:
This was fixed in:
Raw printing with multiple files and/or banners does not work
https://github.com/apple/cups/issues/1933
but unfortunately this commit:
https://github.com/OpenPrinting/cups/commit/c6e4e712
which was added to fix:
https://github.com/apple/cups/issues/4782
caused a regression resulting in the re-appearance of this issue.
Test script and proposed patch to follow.
This likely exists in RHEL 9 and upstream.
Hi Bryan,
thank you for the investigation, the patch, the test and the upstream PR!
To be honest, I haven't seen anyone yet which would have sent a PCL file to CUPS ... ok, looked into [0] better and it seems it is a variant of this comment[1], where the user sends a postscript file to CUPS, which he got from some scripts...
Would you mind finding out the customer's use case with PCL files? What is his reason for sending PCL files instead of text/PDF files?
I'm asking because such customers are the good candidates for cooperation during testing of hp-printer-app[3] or CUPS ippeveprinter, which will cover printing PCL files to the device.
-------------------------------------------------------------------------------------------
Ad the issue - I can reproduce with your steps, the patch LGTM, I'll verify if it works next week.
Ad the test - I briefly checked your test - I'll try to upstream some parts which can be put in CUPS, however the exact test with banners will need to stay downstream, because it needs banners from cups-filters :( .
[0] https://github.com/apple/cups/issues/5271
[1] https://github.com/apple/cups/issues/5271#issuecomment-708317666
[2] https://github.com/apple/cups/issues/5271#issuecomment-710916833
[3] https://github.com/michaelrsweet/hp-printer-app
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (cups bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2022:2032
Description of problem: Printing a banner before a PCL file causes only the banner to be printed. Version-Release number of selected component (if applicable): cups-2.2.6-38.el8 How reproducible: 100% Steps to Reproduce: 1. lpadmin -p test -m foomatic:HP-LaserJet_4Si-ljet4.ppd -v file:/tmp/test.out -E 2. lp -d test -o job-sheets=standard <some-pcl-file> Actual results: <some-pcl-file> isn't printed. Only the banner page is printed. Expected results: Both banne and PCL file should print. Additional info: This was fixed in: Raw printing with multiple files and/or banners does not work https://github.com/apple/cups/issues/1933 but unfortunately this commit: https://github.com/OpenPrinting/cups/commit/c6e4e712 which was added to fix: https://github.com/apple/cups/issues/4782 caused a regression resulting in the re-appearance of this issue. Test script and proposed patch to follow. This likely exists in RHEL 9 and upstream.