Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2084257

Summary: ErrorPolicy documentation is incorrect
Product: Red Hat Enterprise Linux 8 Reporter: Bryan Mason <bmason>
Component: cupsAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED ERRATA QA Contact: Petr Dancak <pdancak>
Severity: low Docs Contact:
Priority: low    
Version: 8.6CC: pdancak, psklenar
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pdancak: needinfo+
pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cups-2.2.6-48.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 10:47:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bryan Mason 2022-05-11 18:26:58 UTC
Description of problem:

  cupsd.conf(5) includes:

    ErrorPolicy retry-this-job

  but that's incorrect.  The directive is "retry-current-job" not
  "retry-this-job".  It's not a huge deal but it occasionally causes
  confusion which results in a case being opened.

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

  cups-2.2.6-44.el8.x86_64

How reproducible:

  100%

Steps to Reproduce:

  1. Run 'man cupsd.conf'

Actual results:

  Bad information

Expected results:

  Correct information

Additional info:

  Upstream:

    https://github.com/apple/cups/issues/5301
    https://github.com/apple/cups/commit/b95156d    
    https://github.com/OpenPrinting/cups/commit/b95156d

Comment 1 Zdenek Dohnal 2022-05-13 06:47:04 UTC
Hi Bryan,

thank you for reporting the issue!

I just checked the scheduler code to be sure - scheduler/conf.c:

1256   /*
1257    * Validate the default error policy...
1258    */
1259 
1260   if (strcmp(ErrorPolicy, "retry-current-job") &&
1261       strcmp(ErrorPolicy, "abort-job") &&
1262       strcmp(ErrorPolicy, "retry-job") &&
1263       strcmp(ErrorPolicy, "stop-printer"))
1264   {
1265     cupsdLogMessage(CUPSD_LOG_ALERT, "Invalid ErrorPolicy \"%s\", resetting to \"stop-printer\".", ErrorPolicy);
1266     cupsdSetString(&ErrorPolicy, "stop-printer");
1267   }

No "retry-this-job" there, so it is really manpage bug.

Since we will have an errata for RHEL 8.7.0, we can fix this as well.

There's no need for test for this issue.

Comment 12 errata-xmlrpc 2022-11-08 10:47:47 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 (cups bug fix and enhancement update), 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://access.redhat.com/errata/RHBA-2022:7716