[Pkg-cups-devel] Bug#545321: cups: "Reprint job" from web interface generates incorrect link

Jay Berkenbilt qjb at debian.org
Sun Sep 6 13:07:35 UTC 2009


Package: cups
Version: 1.3.11-1+b1
Severity: normal
X-Debbugs-CC: qjb at debian.org

I have newly reinstalled my system with lenny and upgrade to squeeze,
so it has very little customization.

cupsd is listening on TCP port 631 only for localhost, as intended:

% sudo netstatp -an | grep LISTEN | grep 631
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      3594/cupsd
tcp6       0      0 ::1:631                 :::*                    LISTEN      3594/cupsd
udp        0      0 0.0.0.0:631             0.0.0.0:*                           3594/cupsd

My host's name is "soup".  /etc/hosts lists it as 127.0.0.1, but this
bug is the same even if I remove that.  DNS gives it an actual IP
address.

Have a printer job that won't print (which you could reproduce by
having the printer turned off, for example) and get the job to a
status of "stopped".  Go to

http://localhost:631/jobs/

See something like this (see attached 1.png)

ID               Name         User   Size  Pages  State     Control
color-laser-6    Test Page    root   17k   2      stopped   Reprint Job ...

On this page, the job number "color-laser-6" includes the link
"color-laser", which points to

http://soup:631/printers/color-laser

It should point to http://localhost:631/printers/color-laser instead.
Since cupsd is not listening on soup port 631, this link fails.

If I click on "Reprint Job", I get a page that says "Job 6
restarted".  The "Job 6" link also points to this:

http://soup:631/printers/color-laser

I'm not sure how to show the configuration of the printer.  I set it
up as socket://color-laser and provided a PPD file.  I haven't done
anything in particular to give "soup" to it.  The printer is a
network-enabled printer with a Jet Direct interface running on port
9100, so configuring it is straightforward.

Please let me know if there is additional information you need to
reproduce this.  I haven't really untangled all the parts of cups, so
there may be something relevant that I'm omitting.  I believe you
can reproduce this easily by just setting up a test printer, type
"generic postscript" on socket://a.b.c.d where a.b.c.d is some IP
address that doesn't have a printer on it or is otherwise
unreachable.  Then print a test page and go to the job list for that
printer.  The job ID link will be incorrect.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (200, 'experimental'), (200, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cups depends on:
ii  adduser                3.110             add and remove users and groups
ii  bc                     1.06.94-3.1       The GNU bc arbitrary precision cal
ii  cups-client            1.3.11-1+b1       Common UNIX Printing System(tm) - 
ii  cups-common            1.3.11-1          Common UNIX Printing System(tm) - 
ii  debconf [debconf-2.0]  1.5.27            Debian configuration management sy
ii  ghostscript            8.70~dfsg-2+b1    The GPL Ghostscript PostScript/PDF
ii  libavahi-compat-libdns 0.6.25-1          Avahi Apple Bonjour compatibility 
ii  libc6                  2.9-25            GNU C Library: Shared libraries
ii  libcups2               1.3.11-1+b1       Common UNIX Printing System(tm) - 
ii  libcupsimage2          1.3.11-1+b1       Common UNIX Printing System(tm) - 
ii  libdbus-1-3            1.2.16-2          simple interprocess messaging syst
ii  libgcc1                1:4.4.1-1         GCC support library
ii  libgnutls26            2.8.3-2           the GNU TLS library - runtime libr
ii  libgssapi-krb5-2       1.7dfsg~beta3-1   MIT Kerberos runtime libraries - k
ii  libijs-0.35            0.35-7            IJS raster image transport protoco
ii  libkrb5-3              1.7dfsg~beta3-1   MIT Kerberos runtime libraries
ii  libldap-2.4-2          2.4.17-1          OpenLDAP libraries
ii  libpam0g               1.0.1-10          Pluggable Authentication Modules l
ii  libpaper1              1.1.23+nmu1       library for handling paper charact
ii  libpoppler4            0.10.6-1          PDF rendering library
ii  libslp1                1.2.1-7.6         OpenSLP libraries
ii  libstdc++6             4.4.1-1           The GNU Standard C++ Library v3
ii  lsb-base               3.2-23            Linux Standard Base 3.2 init scrip
ii  perl-modules           5.10.0-25         Core Perl modules
ii  poppler-utils [xpdf-ut 0.10.6-1          PDF utilitites (based on libpopple
ii  procps                 1:3.2.8-1         /proc file system utilities
ii  ssl-cert               1.0.23            simple debconf wrapper for OpenSSL
ii  ttf-freefont           20080323-3        Freefont Serif, Sans and Mono True
ii  zlib1g                 1:1.2.3.3.dfsg-15 compression library - runtime

Versions of packages cups recommends:
pn  avahi-utils               <none>         (no description available)
ii  cups-driver-gutenprint    5.2.4-1        printer drivers for CUPS
ii  foomatic-filters          4.0-20090509-1 OpenPrinting printer support - fil
ii  ghostscript-cups          8.70~dfsg-2+b1 The GPL Ghostscript PostScript/PDF
ii  smbclient                 2:3.3.4-1      command-line SMB/CIFS clients for 

Versions of packages cups suggests:
ii  cups-bsd               1.3.11-1+b1       Common UNIX Printing System(tm) - 
pn  cups-pdf               <none>            (no description available)
ii  foomatic-db            20090616-1        OpenPrinting printer support - dat
ii  foomatic-db-engine     4.0-20090509-1+b1 OpenPrinting printer support - pro
ii  hplip                  3.9.4b-1          HP Linux Printing and Imaging Syst
pn  xpdf-korean | xpdf-jap <none>            (no description available)

-- debconf information:
  cupsys/raw-print: true
  cupsys/backend: ipp, lpd, parallel, scsi, serial, socket, usb, snmp, dnssd





More information about the Pkg-cups-devel mailing list