RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1196217 - Global "ErrorPolicy" option does not get validate by cups
Summary: Global "ErrorPolicy" option does not get validate by cups
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: cups
Version: 6.7
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Tim Waugh
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-25 14:05 UTC by Rupesh Patel
Modified: 2015-07-22 06:55 UTC (History)
1 user (show)

Fixed In Version: cups-1.4.2-70.el6
Doc Type: Bug Fix
Doc Text:
The ErrorPolicy configuration directive was not validated on startup, and an unintended default error policy could be used without a warning. The directive is now validated on startup and reset to the default if the configured value is incorrect. The intended policy is used, or a warning message is logged.
Clone Of:
: 1196218 (view as bug list)
Environment:
Last Closed: 2015-07-22 06:55:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CUPS Bugs and Features 4591 0 None None None Never
Red Hat Product Errata RHBA-2015:1346 0 normal SHIPPED_LIVE cups bug fix and enhancement update 2015-07-20 17:59:51 UTC

Description Rupesh Patel 2015-02-25 14:05:10 UTC
Version - cups-1.4* and above 

If i modify any of the option in cups.conf  and make spell mistake, it complains in error_log. However, this doesn't seems to validating option "ErrorPolicy" we added sometime back (default releases in RH-6 and after 1.3.7 rebase in RH-5)

Steps to reproduce this... 

1)
[root@dhcp233-34 ~]# grep Max /etc/cups/cupsd.conf
MaxLogSize   <---------- Remove size
[root@dhcp233-34 ~]#

[root@dhcp233-34 ~]# /etc/init.d/cups restart
Stopping cups:                                             [  OK  ]
Starting cups:
[root@dhcp233-34 ~]#                                        [  OK  ]
[root@dhcp233-34 ~]# cat /var/log/cups/error_log
E [25/Feb/2015:18:10:59 +0530] Missing integer value for MaxLogSize on line 1! <------ Complains integer missing

2)

[root@dhcp233-34 ~]# grep LogLevel  /etc/cups/cupsd.conf
LogLevel rn <------- made spell mistake in LogLevel
[root@dhcp233-34 ~]#

[root@dhcp233-34 ~]# cat /var/log/cups/error_log
E [25/Feb/2015:18:10:59 +0530] Missing integer value for MaxLogSize on line 1!
W [25/Feb/2015:18:11:57 +0530] Unknown LogLevel rn on line 11. <---------------  Complain for unknown level
[root@dhcp233-34 ~]#

[root@dhcp233-34 ~]# grep Error  /etc/cups/cupsd.conf
ErrorPolicy test <----------Error policy is invalid but it doesn't complain anything.
[root@dhcp233-34 ~]#

[root@dhcp233-34 ~]# cat /var/log/cups/error_log
E [25/Feb/2015:18:10:59 +0530] Missing integer value for MaxLogSize on line 1!
W [25/Feb/2015:18:11:57 +0530] Unknown LogLevel rn on line 11.
[root@dhcp233-34 ~]#

 ^^ no such commented by cups in error_log for invalid entry.

Comment 4 errata-xmlrpc 2015-07-22 06:55:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1346.html


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