Bug 135728

Summary: client-error-bad-request when seting up printer with cups, samba and hpijs driver.
Product: [Unmaintained] kdeprint Reporter: David R. Litwin <presently42>
Component: generalAssignee: KDEPrint Devel Mailinglist <kde-print-devel>
Status: CLOSED DUPLICATE    
Severity: normal CC: jlayt, me
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David R. Litwin 2006-10-16 08:18:56 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Debian testing/unstable Packages
OS:                Linux

I set up a printer with the kdeprint module of kcontrol. I choose samba, find the printer (HP DeskJet 842C) from the network, enter a name and description (HPDeskJet842c and Kitchen respectively), choose the HPIJS driver for the printer and click next test. The first problem: "Unable to create temporary printer.". I click next. Hah: "Unable to create printer. Error message received from manager: client-error-bad-request". It fails thus to create the printer. However, if I create it via the cups web-interface (http://localhost:631) using the same configurations, the printer works, both from the web-interface and the kdeprint kcontrol module. That is why I file the report against the module and not samba, cups et cetera.
Comment 1 Bram Schoenmakers 2006-10-16 10:58:10 UTC

*** This bug has been marked as a duplicate of 135561 ***
Comment 2 Philippe Cloutier 2006-10-26 12:13:13 UTC
I am also experiencing this problem under Debian testing. This was reported in Debian's BTS as #395146. I don't know if this is a sign that this could be Debian-specific. Bram, what evidence do you have that this is a duplicate of #135561?
Comment 3 Philippe Cloutier 2006-10-26 13:34:21 UTC
From error_log (this needs LogLevel > info):

D [26/Oct/2006:07:27:39 -0400] cupsdAcceptClient: 9 from localhost (Domain)
D [26/Oct/2006:07:27:39 -0400] cupsdReadClient: 9 POST /admin/ HTTP/1.1
D [26/Oct/2006:07:27:39 -0400] cupsdAuthorize: No authentication data provided.
D [26/Oct/2006:07:27:39 -0400] CUPS-Add-Modify-Printer ipp:///var/run/cups/cups.sock/printers/TEST
D [26/Oct/2006:07:27:39 -0400] CUPS-Add-Modify-Printer client-error-bad-request: The printer-uri must be of the form "ipp:/
/HOSTNAME/printers/PRINTERNAME".
D [26/Oct/2006:07:27:39 -0400] cupsdProcessIPPRequest: 9 status_code=400 (client-error-bad-request)
D [26/Oct/2006:07:27:39 -0400] cupsdCloseClient: 9

So, it looks like CUPS doesn't like "/var/run/cups/cups.sock" as HOSTNAME.
Comment 4 Curt Fiene 2007-03-03 17:09:15 UTC
I found if you install hplip then this problem goes away.
At least for FC6.  If hplip is installed it will allow you
to add the printer, but it still won't print. hplip must be started
for successful printing.

Comment 5 John Layt 2008-12-31 20:28:27 UTC
Closing old Resolved status bug.