Supply levels incorrect for RFC-compliant printer

Bug #925086 reported by Peter Hurley
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

With cups 1.5.0 on oneiric:

The CUPS backend (which queries via SNMP to printer for supplies status) incorrectly computes the available supplies. The following cases may occur which CUPS does not handle:
1) A printer may indicate that 'some supplies' remain by using a special value for supply level.
2) A printer may indicate that the supply level is not applicable or unknown by using a special value for supply level.
3) A printer may indicate that it reports supplies in percent already, and no computation is required.
4) A printer may indicate that the supply grows upward (rather than being consumed to zero). A waste tray is an example of this.

Additionally, CUPS does not report waste tray status or cleaning unit supply status.

IETF RFC 3805 (and its predecessor RFC 1759) govern acceptable values and their meanings returned via SNMP.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: cups 1.5.0-8ubuntu6
ProcVersionSignature: Ubuntu 3.0.0-15.26-generic 3.0.13
Uname: Linux 3.0.0-15-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Wed Feb 1 15:01:50 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
Lpstat:
 device for hp2605dn: dnssd://HP%20Color%20LaserJet%202605dn%20(D79DE7)._pdl-datastream._tcp.local/
 device for xrx8560n: dnssd://Phaser%208560N%20(00%3A00%3Aaa%3Aab%3A3d%3Ae0)._printer._tcp.local/
MachineType: Dell Inc. Precision WorkStation T5400
Papersize: letter
PpdFiles:
 hp2605dn: HP Color LaserJet 2605 Postscript (recommended)
 xrx8560n: Xerox Phaser 8560DN
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-15-generic root=UUID=29fc6be6-1991-4b27-b762-9d2753cecad3 ro crashkernel=384M-2G:64M,2G-:128M quiet splash vt.handoff=7
SourcePackage: cups
UdevDb: Error: [Errno 2] No such file or directory
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/21/2008
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A04
dmi.board.name: 0RW203
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 7
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA04:bd08/21/2008:svnDellInc.:pnPrecisionWorkStationT5400:pvr:rvnDellInc.:rn0RW203:rvr:cvnDellInc.:ct7:cvr:
dmi.product.name: Precision WorkStation T5400
dmi.sys.vendor: Dell Inc.

Revision history for this message
Peter Hurley (phurley) wrote :
Revision history for this message
Peter Hurley (phurley) wrote :

Attached is the relevant snip of a printer MIB which exhibits most of these problems.

Revision history for this message
Peter Hurley (phurley) wrote :

Attached is erroneous interpretation by CUPS (as gleaned from running the backend test tool, testsupplies).

Revision history for this message
Peter Hurley (phurley) wrote :

This has been reported upstream as bugs #4016, #4017 and #4019 with patches.

Revision history for this message
Peter Hurley (phurley) wrote :
Revision history for this message
Peter Hurley (phurley) wrote :
Revision history for this message
Peter Hurley (phurley) wrote :
Revision history for this message
Peter Hurley (phurley) wrote :

This patch adds supply state values for waste tray full and cleaner unit end-of-life.

Revision history for this message
Peter Hurley (phurley) wrote :

This patch uses case-insensitive comparison to match colorant names reported by the printer.

This fixes a visual bug in the system-config-printer Printer Properties dialog where the colorants were not being colored.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch 1/3" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Thank you very much for your patches (and also for the patch in bug 926457).

CUPS 1.5.1 got released with some fixes on marker levels. Can you update your patches to correctly apply to 1.5.1, so that I can use it in the Debian/Ubuntu package of CUPS? Thanks.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Changed in cups (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
milestone: none → ubuntu-12.04-beta-1
Revision history for this message
Peter Hurley (phurley) wrote :

I updated the patches to apply to 1.5.1 but since I don't have a backport of 1.5.1 ;) they're untested.

Revision history for this message
Peter Hurley (phurley) wrote :
Revision history for this message
Peter Hurley (phurley) wrote :
Changed in cups (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.9 KiB)

This bug was fixed in the package cups - 1.5.2-1

---------------
cups (1.5.2-1) precise; urgency=low

  [ Till Kamppeter ]
  * New upstream release
  * debian/patches/00svn_gif_overflow.patch,
    debian/patches/cups-driverd-recognize-cached-drv-generated-ppds.patch,
    debian/patches/dont-send-malformed-dbus-messages.patch,
    debian/patches/execute-commandtops-commands.patch,
    debian/patches/usb-backend-gracefully-fail-on-more-cases-of-bad-device-id.patch,
    debian/patches/usb-backend-skip-set-configuration-set-interface.patch:
    Removed, included upstream.
  * debian/patches/ipp-patch-r8950+.patch,
    debian/patches/ipp-backend-fails-to-trigger-authentication-prompts.patch,
    debian/patches/ipp-backend-missing-document-type.patch,
    debian/patches/ipp-backend-http-1.0-fallback-fix.patch: Replaced patch
    for downgrading to the IPP backend to the version of CUPS 1.4.x by patches
    for the current backend (LP: #879625, LP: #881843, CUPS STR #3985,
    CUPS STR #3986, CUPS STR #3988, thanks to Robert Bradley, robert dot
    bradley1 at gmail dot com, for the patches).
  * debian/patches/drop_unnecessary_dependencies.patch: Updated patch to
    add "-lm" to the linker command line, libcups uses the "fmod()" function
    now.
  * debian/patches/cups-avahi.patch,
    debian/patches/usb-backend-libusb-1.0.patch,
    debian/patches/printer-filtering.patch:
    Manually regenerated to adapt to upstream changes.
  * debian/patches/pidfile.patch,
    debian/patches/rootbackends-worldreadable.patch,
    debian/patches/colord-support.patch,
    debian/patches/airprint-support.patch,
    debian/patches/no-conffile-timestamp.patch,
    debian/patches/read-embedded-options-from-incoming-postscript-and-add-to-ipp-attrs.patch,
    debian/patches/do-not-broadcast-with-hostnames.patch,
    debian/patches/do-not-suppress-inputslot-setting-with-empty-ap-d-inputslot.patch,
    debian/patches/confdirperms.patch,
    debian/patches/show-compile-command-lines.patch,
    debian/patches/log-debug-history-nearly-unlimited.patch,
    debian/patches/dnssd-reg-array-linear-search.patch:
    Refreshed using quilt.
  * debian/patches/fix-supply-level-computation-for-percent-supply-unit.patch,
    debian/patches/fix-supply-levels-for-enumerated-prtmarkersupplieslevel.patch,
    debian/patches/fix-status-reports-when-supply-levels-grow.patch:
    The printer supply levels reported via SNMP, according to the printer MIB
    were not correctly interpreted (LP: #925086, CUPS STR #4016, thanks to
    Peter Hurley, peter at hurleysoftware dot com, for the patches).
  * debian/patches/add-status-reports-for-full-waste-trays-and-cleaner-unit-eol.patch:
    Added status reports for waste tray status and cleaner unit end-of-life
    (LP: #925086, CUPS STR #4017, thanks to Peter Hurley, peter at
    hurleysoftware dot com, for the patch).
  * debian/patches/match-marker-colorants-which-use-non-standard-string.patch:
    Try harder to match supply colorant values (LP: #925086, CUPS STR #4019,
    thanks to Peter Hurley, peter at hurleysoftware dot com, for the patch).
  * debian/patches/truncate-marker-supply-names-at-comma.patch: Commas in
    marker supply names mi...

Read more...

Changed in cups (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.