Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 496082

Summary: Unable to set Quota limits using lpadmin command.
Product: Red Hat Enterprise Linux 5 Reporter: Niranjan Mallapadi Raghavender <mniranja>
Component: cupsAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: low    
Version: 5.3CC: jpopelka, pknirsch, ykopkova
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-30 08:15:17 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 Niranjan Mallapadi Raghavender 2009-04-16 14:34:30 UTC
Description of problem:
On RHEL5.3 system with cups version cups-1.3.7-8.el5, when trying to set quota limits or Job page limit using lpadmin command,  these limits are not enforced. 


Version-Release number of selected component (if applicable):
cups-1.3.7-8.el5

How reproducible: Run "lpadmin -p test -o job-quota-period=60400 -o job-page-limit=100" and in  /etc/cups/printers.conf doesn't reflect the above values , showing QuotaPeriod and PageLimit as 0.


Steps to Reproduce:
1.Create a print queu e
#lpadmin -p test -E -v socket://10.65.63.223:9100 -P /usr/share/cups/model/laserjet.ppd.gz

2.Set quota
#lpadmin -p test -o job-quota-period=60400 -o job-page-limit=100

3.cat /etc/cups/printers.conf 
<Printer test>
Info test
DeviceURI socket://10.65.63.223:9100
State Idle
StateTime 1239891818
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

  
Actual results:

The job-quota-period and job-page-limit is never set 

Expected results:
The job-quota-period and job-page-limit should be set

Additional info:

The patch for the above is available upstream.
http://cups.org/str.php?L3077
http://cups.org/str.php?L3078

Comment 7 errata-xmlrpc 2010-03-30 08:15:17 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0210.html