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