Bug 496082 - Unable to set Quota limits using lpadmin command.
Summary: Unable to set Quota limits using lpadmin command.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: cups
Version: 5.3
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Tim Waugh
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-16 14:34 UTC by Niranjan Mallapadi Raghavender
Modified: 2020-08-27 07:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-30 08:15:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CUPS Bugs and Features 3077 0 None None None Never
CUPS Bugs and Features 3078 0 None None None Never
CUPS Bugs and Features 3407 0 None None None Never
Red Hat Product Errata RHBA-2010:0210 0 normal SHIPPED_LIVE cups bug fix update 2010-03-29 12:29:38 UTC

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


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