Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Multi-file jobs gone after printer is disabled/enabled #3226

Closed

Description

@michaelrsweet

Version: 1.3.10
CUPS.org User: twaugh.redhat

A job with multiple files disappears after its printer is disabled and then enabled.

Original bug report here:
https://bugzilla.redhat.com/show_bug.cgi?id=506257

/usr/sbin/lpadmin -p testprinter -E -v socket://127.0.0.1:9100
echo "test print 1" > print1.txt
echo "test print 2" > print2.txt
lp -d testprinter print1.txt print2.txt
cupsdisable testprinter
cupsenable testprinter
lpstat -o

The job is gone. A suggested patch is attached, based on a change for a similar problem that was fixed in 1.3.4.

Activity

  1. michaelrsweet commented on Jun 18, 2009

    @michaelrsweet
    ContributorAuthor

    CUPS.org User: mike

    Fixed in Subversion repository.

    (Already fixed in trunk for 1.4...)

  2. michaelrsweet commented on Jun 18, 2009

    @michaelrsweet
    ContributorAuthor

    "0001-Reprint-all-files-in-a-job-that-was-held-due-to-the.patch":

    From 2933883391f96a829da62a2a2fff145db68775e0 Mon Sep 17 00:00:00 2001
    From: Tim Waugh twaugh@worm.elk
    Date: Tue, 16 Jun 2009 15:24:46 +0100
    Subject: [PATCH] Reprint all files in a job that was held due to the printer being disabled.

    See https://bugzilla.redhat.com/show_bug.cgi?id=506257.

    scheduler/printers.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/scheduler/printers.c b/scheduler/printers.c
    index c92541b..df23b7b 100644
    --- a/scheduler/printers.c
    +++ b/scheduler/printers.c
    @@ -2869,6 +2869,7 @@ cupsdStopPrinter(cupsd_printer_t p, / I - Printer to stop */

     job->state->values[0].integer = IPP_JOB_PENDING;
     job->state_value              = IPP_JOB_PENDING;
    
    • job->current_file = 0;

    cupsdSaveJob(job);

    1.6.2.2

  3. added this to the Stable milestone on Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions