Bug 1749104

Summary: cupsd ppd file parsing confused
Product: [Fedora] Fedora Reporter: GMS <george.sigut>
Component: cupsAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: twaugh, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-17 12:27:26 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:
Attachments:
Description Flags
ppd file for HP ENVY 5000-series NOT working
none
ppd file for HP ENVY 5000-series working none

Description GMS 2019-09-04 21:53:48 UTC
Description of problem:

Printing of pdf files fails. The study of the logs and playing
with the ppd file gives following picture:

cupsd refuses to load ppd files with the lines

*PageSize Custom/Custom: ...
*PageSize Custom.FB/Borderless Custom: ...

*PageRegion Custom/Custom: ...
*PageRegion Custom.FB/Borderless Custom: ...

*ImageableArea Custom/Custom: ...
*ImageableArea Custom.FB/Borderless Custom: ...

*PaperDimension Custom/Custom: ...
*PaperDimension Custom.FB/Borderless Custom: ...

(any and all of them; never mind what the rest of the line says)

The error message says

Illegal option keyword string on line xxx of /etc/cups/ppd/xxx.ppd

Version-Release number of selected component (if applicable):

cups-2.2.12-1.fc30.x86_64
(cups-2.2.11-3.fc30.x86_64 works OK)

How reproducible:

Start the machine, try to print and fail.

Steps to Reproduce:
1. take a pdf file
2. send it to the printer

Actual results:

The ppd file is not loaded and the printer can't print e.g. pdf.

Expected results:

The ppd file is loaded and the printer works fine.

Additional info:

It looks that the "Custom" in the name is mis-interpreted as a keyword
and the line is declared illegal, thereby preventing the use of the file.
The same file worked with the previous cups version.

The issue can be sidestepped by commenting out the relevant lines.

Comment 1 Zdenek Dohnal 2019-09-05 08:51:15 UTC
Hi,

thank you for reporting the issue! 

Would you mind attaching your ppd file to the ticket? 

I will need it for reproducing the issue.

And would you mind telling me your printer model?

Comment 2 GMS 2019-09-05 15:46:26 UTC
Created attachment 1612036 [details]
ppd file for HP ENVY 5000-series NOT working

Comment 3 GMS 2019-09-05 15:47:39 UTC
Created attachment 1612037 [details]
ppd file for HP ENVY 5000-series working

Comment 4 Zdenek Dohnal 2020-02-17 12:27:26 UTC
Hi,

I'm sorry for long delay - it is actually fixed as bug #1750904.

*** This bug has been marked as a duplicate of bug 1750904 ***