[Bug 222938] New: kaddprinterwizard: CUPS-Add-Modify-Printer client-error-bad-request
https://bugzilla.novell.com/show_bug.cgi?id=222938 Summary: kaddprinterwizard: CUPS-Add-Modify-Printer client-error- bad-request Product: openSUSE 10.2 Version: Beta 2 plus Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: KDE AssignedTo: kde-maintainers@suse.de ReportedBy: jsmeix@novell.com QAContact: qa@suse.de CC: kssingvo@novell.com /opt/kde3/bin/kaddprinterwizard fails to set up a print queue. I run it directly as root from the command line. I select the parallel port and then a manufactuer and model and then I clicked [Test] on the "Printer Test" screen which fails with the error popup message "Unable to create a temporary printer." and in /var/log/cups/error_log there is (with "LogLevel debug" in /etc/cups/cupsd.conf): ------------------------------------------------------------------------------ D [21/Nov/2006:14:14:57 +0100] cupsdAcceptClient: 9 from localhost (Domain) D [21/Nov/2006:14:14:57 +0100] cupsdReadClient: 9 POST /admin/ HTTP/1.1 D [21/Nov/2006:14:14:57 +0100] cupsdAuthorize: No authentication data provided. D [21/Nov/2006:14:14:57 +0100] CUPS-Add-Modify-Printer ipp:///var/run/cups/cups.sock/printers/tmpprinter_FFf2RBgv D [21/Nov/2006:14:14:57 +0100] CUPS-Add-Modify-Printer client-error-bad-request: The printer-uri must be of the form "ipp://HOSTNAME/printers/PRINTERNAME". D [21/Nov/2006:14:14:57 +0100] cupsdProcessIPPRequest: 9 status_code=400 (client-error-bad-request) D [21/Nov/2006:14:14:57 +0100] cupsdCloseClient: 9 ------------------------------------------------------------------------------ The same happens when finishing kaddprinterwizard: It fails with the error popup message "client-error-bad-request" and in /var/log/cups/error_log there is the same as before: ------------------------------------------------------------------------------ D [21/Nov/2006:14:24:23 +0100] cupsdAcceptClient: 10 from localhost (Domain) D [21/Nov/2006:14:24:23 +0100] cupsdReadClient: 10 POST /admin/ HTTP/1.1 D [21/Nov/2006:14:24:23 +0100] cupsdAuthorize: No authentication data provided. D [21/Nov/2006:14:24:23 +0100] CUPS-Add-Modify-Printer ipp:///var/run/cups/cups.sock/printers/testy D [21/Nov/2006:14:24:23 +0100] CUPS-Add-Modify-Printer client-error-bad-request: The printer-uri must be of the form "ipp://HOSTNAME/printers/PRINTERNAME". D [21/Nov/2006:14:24:23 +0100] cupsdProcessIPPRequest: 10 status_code=400 (client-error-bad-request) D [21/Nov/2006:14:24:23 +0100] cupsdCloseClient: 10 ------------------------------------------------------------------------------ For comparsion here the error_log messages when I set up the queue with root@host# lpadmin -p testy -v parallel:/dev/lp0 -E \ -P /usr/share/cups/model/Postscript.ppd.gz ------------------------------------------------------------------------------ D [21/Nov/2006:14:28:24 +0100] cupsdAcceptClient: 9 from localhost (Domain) D [21/Nov/2006:14:28:24 +0100] cupsdReadClient: 9 POST /admin/ HTTP/1.1 D [21/Nov/2006:14:28:24 +0100] cupsdAuthorize: No authentication data provided. D [21/Nov/2006:14:28:24 +0100] CUPS-Add-Modify-Printer ipp://localhost/printers/testy E [21/Nov/2006:14:28:24 +0100] CUPS-Add-Modify-Printer: Unauthorized D [21/Nov/2006:14:28:24 +0100] cupsdSendError: 9 code=401 (Unauthorized) D [21/Nov/2006:14:28:24 +0100] cupsdAcceptClient: 10 from localhost (Domain) D [21/Nov/2006:14:28:24 +0100] cupsdCloseClient: 9 D [21/Nov/2006:14:28:24 +0100] cupsdReadClient: 10 POST /admin/ HTTP/1.1 D [21/Nov/2006:14:28:24 +0100] cupsdAuthorize: username="root" D [21/Nov/2006:14:28:24 +0100] CUPS-Add-Modify-Printer ipp://localhost/printers/testy I [21/Nov/2006:14:28:24 +0100] Setting testy device-uri to "parallel:/dev/lp0" (was "file:/dev/null".) I [21/Nov/2006:14:28:24 +0100] Saving printers.conf... D [21/Nov/2006:14:28:24 +0100] Discarding unused printer-added event... I [21/Nov/2006:14:28:24 +0100] New printer "testy" added by "root". D [21/Nov/2006:14:28:24 +0100] cupsdProcessIPPRequest: 10 status_code=0 (successful-ok) D [21/Nov/2006:14:28:24 +0100] cupsdReadClient: 10 POST /admin/ HTTP/1.1 D [21/Nov/2006:14:28:24 +0100] cupsdAuthorize: username="root" D [21/Nov/2006:14:28:24 +0100] CUPS-Add-Modify-Printer ipp://localhost/printers/testy I [21/Nov/2006:14:28:24 +0100] Setting testy printer-is-accepting-jobs to 1 (was 0.) I [21/Nov/2006:14:28:24 +0100] Setting testy printer-state to 3 (was 5.) D [21/Nov/2006:14:28:24 +0100] Discarding unused printer-state-changed event... I [21/Nov/2006:14:28:24 +0100] Saving printers.conf... D [21/Nov/2006:14:28:24 +0100] Discarding unused printer-modified event... I [21/Nov/2006:14:28:24 +0100] Printer "testy" modified by "root". D [21/Nov/2006:14:28:24 +0100] cupsdProcessIPPRequest: 10 status_code=0 (successful-ok) D [21/Nov/2006:14:28:24 +0100] cupsdReadClient: 10 POST /admin/ HTTP/1.1 D [21/Nov/2006:14:28:24 +0100] cupsdAuthorize: username="root" D [21/Nov/2006:14:28:24 +0100] CUPS-Add-Modify-Printer ipp://localhost/printers/testy D [21/Nov/2006:14:28:24 +0100] Copied PPD file successfully! I [21/Nov/2006:14:28:24 +0100] Saving printers.conf... D [21/Nov/2006:14:28:24 +0100] Discarding unused printer-modified event... I [21/Nov/2006:14:28:24 +0100] Printer "testy" modified by "root". D [21/Nov/2006:14:28:24 +0100] cupsdProcessIPPRequest: 10 status_code=0 (successful-ok) D [21/Nov/2006:14:28:24 +0100] cupsdCloseClient: 10 ------------------------------------------------------------------------------ By the way: The "CUPS-Add-Modify-Printer: Unauthorized" error messages appear since CUPS 1.2 in error_log but "lpadmin" works nevertheless. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222938 ------- Comment #1 from jsmeix@novell.com 2006-11-21 07:57 MST ------- I found where "/var/run/cups/cups.sock" can be changed to "localhost" so that it works: Run /opt/kde3/bin/kaddprinterwizard --kdeconfig and in the "CUPS Server" section change the "Host" entry from "/var/run/cups/cups.sock" to "localhost". Now /opt/kde3/bin/kaddprinterwizard works perfectly for me (at least when I run it directly as root from the command line). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222938 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |jsmeix@novell.com ------- Comment #2 from dmueller@novell.com 2006-11-21 08:30 MST ------- how is the ipp url supposed to look like with unix domain sockets? I can fix that then easily. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222938 jsmeix@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|jsmeix@novell.com |kssingvo@novell.com ------- Comment #3 from jsmeix@novell.com 2006-11-22 01:38 MST ------- I don't know. Klaus, can you answer comment #2? Dirk, what is the reason why KDE doesn't use "localhost" by default? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222938 kssingvo@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|kssingvo@novell.com | ------- Comment #4 from kssingvo@novell.com 2006-11-22 02:30 MST ------- I already explained it to Dirk yesterday. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222938 ------- Comment #5 from dmueller@novell.com 2006-11-22 04:10 MST ------- Johannes: Because CUPS 1.2 defaults to unix domain socket communication. KDE only reads cups defaults (more exactly, the return of cups.h: extern const char *cupsServer(void); which defaults to /var/run/cups/cups.sock by default with cups 1.2. (besides that this is one of the major new features of cups 1.2 (to be able to disable the tcp based code)). Why cups advertises unix domain sockets but then isn't able to handle the ipp url's that are based on it is beyond me, but I'll try to find out. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222938 ------- Comment #6 from kssingvo@novell.com 2006-11-22 04:34 MST ------- yes, but the cupsServer() function only returns the connection type, not the operation/URI what to modify. Please change your code to replace "var/run/cups/cups.sock" by "localhost", as suggested in comment#1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222938 ------- Comment #9 from dmueller@novell.com 2006-11-22 08:31 MST ------- Created an attachment (id=106604) --> (https://bugzilla.novell.com/attachment.cgi?id=106604&action=view) patch -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222938 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|kssingvo@novell.com | Resolution| |FIXED ------- Comment #11 from dmueller@novell.com 2007-01-09 09:46 MST ------- has been submitted to 10.2. No answer -> assuming FIXED. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com