[cups.bugs] [HIGH] STR #1379: USB URI is not set correctly by the web interface

Till Kamppeter till.kamppeter at gmx.net
Mon Jan 16 02:45:34 PST 2006


[STR New]

Again the HP PhotoSmart 2600 connected to the USB. On the admin page the
web interface shows it in the "New Printers Found:" list. I click on its
"Add this printer" button and get a list of PPDs then I choose a PPD and a
print queue gets generated. Due to STR #1378 I need to fix this queue at
first by manually copying the PPD file:

-------------------------------------------------------------------------
[root at majax g]# cupstestppd
/etc/cups/ppd/HP_Photosmart_2600_series_USB_1.ppd
/etc/cups/ppd/HP_Photosmart_2600_series_USB_1.ppd: FAIL
      **FAIL**  Unable to open PPD file - Missing value string on line
1729.
                REF: Page 20, section 3.4.
[root at majax g]# cp stp-pcl-900.5.0.ppd
/etc/cups/ppd/HP_Photosmart_2600_series_USB_1.ppd
[root at majax g]# service cups restart
[root at majax g]# cupstestppd
/etc/cups/ppd/HP_Photosmart_2600_series_USB_1.ppd
/etc/cups/ppd/HP_Photosmart_2600_series_USB_1.ppd: PASS
[root at majax g]# 
-------------------------------------------------------------------------

After having done so I am still not able to print and the problem is that
the web interface does not set the URI correctly. "lpinfo -v" tells me
that the URI is

usb://HP/Photosmart%202600%20series?serial=MY53OK70V10400

The web interface puts the URI

usb://HP/Photosmart 2600 series?serial=MY53OK70V10400

into /etc/cups/printers.conf and jobs sent to the queue are not printed
and handled according to the chosen error policy for the queue.

If I manually correct the URI in /etc/cups/printers.conf (by editing the
file, or by using lpadmin) to the form shown by "lpinfo -v" the jobs get
immediately printed.

Difference between the wrong and the correct URI is that the wrong one has
spaces and the correct one has "%20".

System is Mandriva's Cooker and CUPS version is the SVN revision 4929
(last weekly snapshot).

Link: http://www.cups.org/str.php?L1379
Version: 1.2-current





More information about the cups mailing list