Bug 1749104 - cupsd ppd file parsing confused
Summary: cupsd ppd file parsing confused
Keywords:
Status: CLOSED DUPLICATE of bug 1750904
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 30
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-04 21:53 UTC by GMS
Modified: 2020-02-17 12:27 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-02-17 12:27:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
ppd file for HP ENVY 5000-series NOT working (32.35 KB, text/plain)
2019-09-05 15:46 UTC, GMS
no flags Details
ppd file for HP ENVY 5000-series working (32.36 KB, text/plain)
2019-09-05 15:47 UTC, GMS
no flags Details

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 ***


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