Before the fix, every successfully printed jobs ended up with
'processing-to-stop-point' as the last reasons message.
Final fix for #828 .
- Fixed crash in `scan_ps()` if incoming argument is NULL (Issue #831)
- Fixed memory leak when creating color profiles (Issue #815)
- Fixed memory leak when unloading a job (Issue #813)
+- Fixed setting job state reasons for successful jobs (Issue #832)
- Raised `cups_enum_dests()` timeout for listing available IPP printers (Issue #751)
- Really backport fix for Issue #742
case IPP_JOB_CANCELED :
case IPP_JOB_COMPLETED :
set_time(job, "time-at-completed");
- ippSetString(job->attrs, &job->reasons, 0, "processing-to-stop-point");
- break;
+
+ /*
+ * Set the reasons here only if we call finalize_job()
+ * at the end of this function, so finished jobs can get proper
+ * reasons message there...
+ */
+
+ if (action >= CUPSD_JOB_FORCE && job && job->printer)
+ ippSetString(job->attrs, &job->reasons, 0, "processing-to-stop-point");
+ break;
}
/*