hp-info cannot query static properties of a printer model before a CUPS queue is created

Bug #329220 reported by Till Kamppeter on 2009-02-13
Affects Status Importance Assigned to Milestone
hplip (Ubuntu)

Bug Description

For system-config-printer (and probably most other printer setup tools with HPLIP support) it is needed to query specifications of a detected HP printer before creating a queue for it.

For example a multi-function device on the network is discovered (the SNMP backend of CUPS discovers which IPs on the local network are printers and hp-makeuri determines whether they are HPLIP-supported and with which functionalities). To set up a queue for its fax part I need to know which of the two Fax PPDs to take. So I call "hp-info -d <Fax URI>" and search for "fax-type" in the output. If the fax type is 4, I take the "Fax 2" PPD file otherwise the "Fax" PPD file. With older versions of HPLIP this worked, but the current one (2.8.12) allows hp-info queries only with the URIs of existing CUPS queues.

Another problems are printers which require firmware files. If I want to set up such a printer I want to check at first whether the user agrees with downloading the firmware from HP (the proprietary plug-in) before I create a queue for that printer. Here I would use hp-info to check the "plugin" and "fw-download" variables.

It is easy to block out the check whether for the supplied URI a CUPS queue exists only for hp-info (patch attached) and then I can actually query the properties of a printer whose URI I got from hp-makeuri or from the HPLIP CUPS backends,

So could you apply this patch or remove the "CUPS queue must exist" check from hp-info in a more elegant way? Thanks.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hplip - 2.8.12-3ubuntu1

hplip (2.8.12-3ubuntu1) jaunty; urgency=low

  [ Till Kamppeter ]
  * debian/patches/hpinfo-query-without-cups-queue.dpatch: Allow hp-info to
    query URIs for which there is no CUPS queue (LP: #329220).

  [ Mark Purcell ]
  * debian/patches/hp-check_debian.dpatch: Fixed hp-check for the SANE driver

 -- Till Kamppeter <email address hidden> Wed, 18 Feb 2009 11:35:45 +0100

Changed in hplip:
status: New → Fix Released
Changed in hplip:
assignee: nobody → kalosaurusrex
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers