Bug 1712814

Summary: Removed option from Ghostscript causes breakage of printing by foomatic-rip filter
Product: Red Hat Enterprise Linux 8 Reporter: Zdenek Dohnal <zdohnal>
Component: cups-filtersAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED ERRATA QA Contact: Petr Sklenar <psklenar>
Severity: high Docs Contact:
Priority: urgent    
Version: 8.1CC: fkrska, psklenar, thozza, toneata
Target Milestone: rcKeywords: Patch, ZStream
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cups-filters-1.20.0-15.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1713461 (view as bug list) Environment:
Last Closed: 2019-11-05 20:59:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1713461    
Attachments:
Description Flags
Patch none

Description Zdenek Dohnal 2019-05-22 10:00:02 UTC
Based on https://bugzilla.redhat.com/show_bug.cgi?id=1707559#c5 :

cups-filters was apparently using an undocumented feature of Ghostscript to count pages in PDFs - a feature that has been removed.  As a result, printing seems to be pretty much completely broken for any job that needs to go through a filter.

Debian bug - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926576
Arch bug - https://bugs.archlinux.org/task/62251
Upstream commit to fix - https://github.com/OpenPrinting/cups-filters/commit/297cc2decc53e0b08eb03049fce375db33df2131

I'll clone the issue to RHEL 7 too, because the issue is there too. Plus we will need z-stream to RHEL-8.0.

Comment 1 Zdenek Dohnal 2019-05-23 06:10:09 UTC
I was able to reproduce with ppd file from https://bugzilla.redhat.com/show_bug.cgi?id=1707559, I'll write the test.

Comment 2 Zdenek Dohnal 2019-05-23 07:18:27 UTC
Confirmed that upstream commit fixes it.

Comment 10 Zdenek Dohnal 2019-05-23 15:28:21 UTC
Created attachment 1572593 [details]
Patch

Comment 15 errata-xmlrpc 2019-11-05 20:59:18 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, 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-2019:3393