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.

Unable to print documents with more than one copy (cups-lpd) #4118

Closed

Description

@michaelrsweet

Version: 1.5.3
CUPS.org User: otho

In our company, we are using Cups as spool server since many years.

Right now, we have Cups-1.4.6 installed an running.
If I upgrade to Cups-1.5.3, all applicatins, which are using the LPD protocol, are unable to print documents with more than one copy.

The following error appears in the logfile:

cups-lpd[6195]: Connection from sapg53.sfs-intra.net (IPv4 10.41.10.206)
cups-lpd[6195]: Receive print job for P020
cups-lpd[6195]: Print file - job ID = 30361
cups-lpd[6195]: Unable to send document - Missing last-document attribute in request.
cups-lpd[6195]: Closing connection

Activity

  1. michaelrsweet commented on Jun 20, 2012

    @michaelrsweet
    ContributorAuthor

    CUPS.org User: mike

    Fixed in Subversion repository.

  2. michaelrsweet commented on Jun 20, 2012

    @michaelrsweet
    ContributorAuthor

    "str4118.patch":

    Index: scheduler/cups-lpd.c

    --- scheduler/cups-lpd.c (revision 10522)
    +++ scheduler/cups-lpd.c (working copy)
    @@ -3,7 +3,7 @@
    *

    • Line Printer Daemon interface for CUPS.
    • * Copyright 2007-2011 by Apple Inc.
    • * Copyright 2007-2012 by Apple Inc.
    • Copyright 1997-2006 by Easy Software Products, all rights reserved.
    • These coded instructions, statements, and computer programs are the
      @@ -744,8 +744,7 @@
      ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE,
      "document-format", NULL, format);
    • if (last)
    • ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", 1);
    • ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", last);

    /*

    • Do the request...
  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