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.
Bug 1982891 - Printing of banner before PCL file only prints banner
Summary: Printing of banner before PCL file only prints banner
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cups
Version: 8.3
Hardware: x86_64
OS: Linux
high
high
Target Milestone: beta
: ---
Assignee: Zdenek Dohnal
QA Contact: Petr Dancak
URL:
Whiteboard:
: 1996102 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-15 22:58 UTC by Bryan Mason
Modified: 2022-05-10 16:35 UTC (History)
3 users (show)

Fixed In Version: cups-2.2.6-41.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1999955 (view as bug list)
Environment:
Last Closed: 2022-05-10 15:21:27 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch (160.65 KB, patch)
2021-07-15 23:01 UTC, Bryan Mason
no flags Details | Diff
Fixed patch (1.22 KB, patch)
2021-07-15 23:13 UTC, Bryan Mason
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Github OpenPrinting cups pull 209 0 None open scheduler/job.c: use gziptoany for raw files (not just raw printers) 2021-08-31 00:31:27 UTC
Red Hat Knowledge Base (Solution) 6192781 0 None None None 2021-07-16 21:39:02 UTC
Red Hat Product Errata RHBA-2022:2032 0 None None None 2022-05-10 15:21:38 UTC

Description Bryan Mason 2021-07-15 22:58:19 UTC
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.

Comment 2 Bryan Mason 2021-07-15 23:01:58 UTC
Created attachment 1802121 [details]
Proposed patch

Comment 4 Bryan Mason 2021-07-15 23:13:20 UTC
Created attachment 1802122 [details]
Fixed patch

Oh rats!  Forgot to clean up *~ before running diff.  Fixed in this patch.

Comment 5 Bryan Mason 2021-07-15 23:45:42 UTC
Upstream PR: https://github.com/OpenPrinting/cups/pull/209

Comment 6 Zdenek Dohnal 2021-07-16 08:50:16 UTC
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

Comment 8 Zdenek Dohnal 2021-08-25 12:04:52 UTC
*** Bug 1996102 has been marked as a duplicate of this bug. ***

Comment 21 errata-xmlrpc 2022-05-10 15:21:27 UTC
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


Note You need to log in before you can comment on or make changes to this bug.