Bug 174054

Summary: cups upgrade doesnt preserve entire printer configuration
Product: [Fedora] Fedora Reporter: JW <ohtmvyyn>
Component: cupsAssignee: Tim Waugh <twaugh>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4Keywords: Reopened
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-12-12 17:14:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description JW 2005-11-24 02:45:24 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; MSIE 6.0; Windows; U; AIIEEEE!; Win98; Windows 98; en-US; Gecko masquerading as IE; should it matter?; rv:1.8b) Gecko/20050217

Description of problem:
cups upgrade destroys some printer configuration information.
In particular, default printer paper reverts to "Letter" when had been changed to "A4".


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

How reproducible:
Always

Steps to Reproduce:
1.modify printer paper size to a4
2.rpm -Fvh cups-NNNN
3.check printer paper size

  

Actual Results:  paper size set to Letter

Expected Results:  paper size remain set to A4


Additional info:

Perhaps the default should be changed to A4, so that when this sort of bug occurs users/developers in USA will pick it up real quick. As it stands, by setting defaults to local defaults, many bugs dont get picked up early enough.

If I was Redhat I would set all defaults to something foreign. That way I would pick up problems straight away.

Comment 1 Tim Waugh 2005-11-24 09:19:30 UTC
You don't say how you are modifying the printer size -- are you doing that
through the CUPS web interface for a queue that has been created using
system-config-printer?

Comment 2 JW 2005-11-24 10:49:18 UTC
(In reply to comment #1)
> You don't say how you are modifying the printer size -- are you doing that
> through the CUPS web interface for a queue that has been created using
> system-config-printer?

Through CUPS web interface for a queue that has been created using CUPS web
interface.


Comment 3 Tim Waugh 2005-11-24 11:05:26 UTC
(FWIW, I myself use A4 paper.)

I have been unable to reproduce this problem.  Here are the steps I used:

Start firefox and browse to http://localhost:631/
Choose 'Do Administration tasks'
Add a new printer called 'deskjet'

In a shell, 'cp /etc/cups/ppd/deskjet.ppd /tmp/ppd-letter'

Choose 'Configure printer'
Set page size to A4 and click 'Continue
In a shell, 'cp /etc/cups/ppd/deskjet.ppd /tmp/ppd-before-upgrade'

Upgrade CUPS (rpm -Uvh --force cups-*.rpm)

In a shell, 'grep DefaultPageRegion /etc/cups/ppd/deskjet.ppd':
*DefaultPageRegion: A4

In a shell, 'diff -du /tmp/ppd-before-upgrade /etc/cups/ppd/deskjet.ppd'
(no output)

In a shell, 'diff -U0 /tmp/ppd-letter /tmp/ppd-before-upgrade':
-*DefaultPageSize: Letter
+*DefaultPageSize: A4

This shows that the page size is stored in the PPD, and that the PPD was not
modified on upgrade.

Please try the same steps on your installation and let's see what the difference is.

Comment 4 JW 2005-11-24 12:09:25 UTC
I never did "rpm -Uvh --force cups-*.rpm".
I probably did "rpm -Fvh cups-1.1.23-15.1.i386.rpm".
That is, I never reinstalled the same version - I upgraded from 1.1.23-15 to
1.1.23-15.1.

All I have at this stage is backup copy of the ppd before, which contained A4
setting.  There wasn't a system backup between time I upgraded cups and when I
corrected noticed it had reverted to Letter, so you only have my word for it.

But I also notice that specific configuration information in cupsd.conf also
disappeared - especially per-printer "Allow From" lines and a "Listen" line.  So
whatever did it also zapped cupsd.conf. However, other configuration content
(before auto stuff in cupsd.conf) was preserved ok.

BTW alchemist wasn't upgraded, but about 500 other modules were (simultaneously).


Comment 5 Tim Waugh 2005-11-24 13:12:24 UTC
You filed a separate bug report for cupsd.conf -- that is a known issue.  But
PPD files should certainly not be altered just by upgrading the cups package.

I know that you used -Fvh for a newer version; however, since no PPD files are
shipped in /etc/cups/ppd in the RPM, this makes no difference.  Only RPM
scriptlets or triggers could be responsible, and as far as I can tell they are not.

What is the queue name of the affected queue, and what does 'printconf-tui
--Xexport' say?

Comment 6 John Thacker 2006-05-05 21:34:05 UTC
Closing due to lack of response by reporter.

Comment 7 JW 2006-05-06 00:10:53 UTC
(In reply to comment #6)
> Closing due to lack of response by reporter.

In response might I add that it appears to spontaneously revert to Letter page
size sometimes after a reboot.  It might have something to do with usb printer
registration, but I have neither the time, or money, to be able to afford to
investigate further.

But there is a problem, and it isn't just a figment of my imagination.