Bug 1848575 - [cups, cups-filters] PPD generators creates invalid cupsManualCopies entry
Summary: [cups, cups-filters] PPD generators creates invalid cupsManualCopies entry
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-18 14:37 UTC by Dave Allan
Modified: 2020-08-05 02:15 UTC (History)
11 users (show)

Fixed In Version: cups-2.3.3-8.fc32 cups-2.2.12-11.fc31
Clone Of:
Environment:
Last Closed: 2020-07-24 01:14:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Test PDF document used in bug repro (10.07 KB, application/pdf)
2020-06-25 16:52 UTC, Dave Allan
no flags Details
gzipped PPD for my printer (3.10 KB, application/gzip)
2020-06-25 16:55 UTC, Dave Allan
no flags Details
lpstat -s output (171 bytes, text/plain)
2020-06-25 16:56 UTC, Dave Allan
no flags Details

Description Dave Allan 2020-06-18 14:37:05 UTC
Description of problem:
Evince ignores the value in the 'Copies' field of the print dialog and prints a single copy of the document to be printed.

Version-Release number of selected component (if applicable):
evince-3.34.2-1.fc31.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Open a document
2. Open the print dialog and increment the number of copies to 2
3. Print

Actual results:
One copy

Expected results:
Two copies

Additional info:

Comment 1 Marek Kašík 2020-06-25 10:37:20 UTC
Does it happen with any PDF or a specific one?
Which model is the printer?
Could you attach here PPD of the printer? You can find it in "/etc/cups/ppd/name-of-the-printer.ppd". You'll need root to get to it.
Also, corresponding line for the printer from "lpstat -s" could help.

Comment 2 Dave Allan 2020-06-25 16:52:49 UTC
Created attachment 1698813 [details]
Test PDF document used in bug repro

Comment 3 Dave Allan 2020-06-25 16:55:24 UTC
Created attachment 1698814 [details]
gzipped PPD for my printer

Comment 4 Dave Allan 2020-06-25 16:56:14 UTC
Created attachment 1698816 [details]
lpstat -s output

Comment 5 Dave Allan 2020-06-25 16:56:57 UTC
It seems to happen with any PDF.  I've attached the test PDF I just used to reproduce it again.

Comment 6 Dave Allan 2020-06-25 16:58:05 UTC
FWIW, I had to gzip the PPD as I was getting 500 errors back from bugzilla.redhat.com when I tried to upload it ungzipped.

Comment 7 Marek Kašík 2020-07-02 13:50:00 UTC
Thank you for the info. I'm able to reproduce this issue now.
If I start cups-browsed and let it find my printer (HP LaserJet Pro MFP M127fw), the printer does not respect the number of copies too. Moreover it does not print more than 1 copy even if I print using lpr to it. I see that corresponding "/var/spool/cups/c00745" has number of copies set to 2 but still printing just 1 copy. This is on Fedora 32 with cups-2.3.3-6.fc32.x86_64 and cups-filters-1.27.5-2.fc32.x86_64. PCFileName in the PPD is also "drvless.ppd".
I'm reassigning this to CUPS.

Comment 8 Zdenek Dohnal 2020-07-20 12:13:28 UTC
Hi Marek and Dave,

thank you for investigating and reporting the issue!

I'm able to reproduce the issue with attached ppd and pdf - output can be viewed via rasterview.

The reason of the issue is PPD generators (both cups and cups-filters) put 'cupsManualCopies: true' into PPD, but PPD is case sensitive and the correct value is 'True'. 

The issue is fixed in cups-filters upstream and cups has following pull request https://github.com/apple/cups/pull/5807 .

I'll update both packages.
================================================

Dave, depending on how you installed the printer, you will need to do following:

1) if you installed the printer manually (via lpadmin/system-config-printer/gnome settings/any printer configuration tool), you will need to reinstall it again

2) if you installed the printer via cups-browsed, you just need to restart cups-browsed

3) if the printer was automatically installed by gtk based on avahi multicast, then no action should be needed.

Comment 9 Fedora Update System 2020-07-20 13:11:55 UTC
FEDORA-2020-7db2a3f0b9 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-7db2a3f0b9

Comment 10 Fedora Update System 2020-07-20 13:15:56 UTC
FEDORA-2020-80facfeb7b has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-80facfeb7b

Comment 11 Fedora Update System 2020-07-20 13:20:32 UTC
FEDORA-2020-7755ad7c03 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-7755ad7c03

Comment 12 Fedora Update System 2020-07-20 13:31:48 UTC
FEDORA-2020-49a936c70c has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-49a936c70c

Comment 13 Fedora Update System 2020-07-21 01:37:28 UTC
FEDORA-2020-7db2a3f0b9 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-7db2a3f0b9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-7db2a3f0b9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2020-07-21 01:37:30 UTC
FEDORA-2020-80facfeb7b has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-80facfeb7b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-80facfeb7b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2020-07-21 01:40:31 UTC
FEDORA-2020-7755ad7c03 has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-7755ad7c03`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-7755ad7c03

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2020-07-21 01:40:32 UTC
FEDORA-2020-49a936c70c has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-49a936c70c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-49a936c70c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Dave Allan 2020-07-22 16:50:26 UTC
I was able to verify the fix and gave karma in bodhi.  Thanks for the quick response.

Comment 18 Fedora Update System 2020-07-24 01:14:25 UTC
FEDORA-2020-7db2a3f0b9 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2020-07-24 01:14:27 UTC
FEDORA-2020-80facfeb7b has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 20 Fedora Update System 2020-07-28 15:02:23 UTC
FEDORA-2020-7755ad7c03 has been pushed to the Fedora 31 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 21 Fedora Update System 2020-08-05 02:15:03 UTC
FEDORA-2020-49a936c70c has been pushed to the Fedora 31 stable repository.
If problem still persists, please make note of it in this bug report.


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