[cups.bugs] [MOD] STR #3162: IPv6 loopback address (::1) considered a bad host.

Philippe Chaintreuil cupsbugs_peep at parallaxshift.com
Tue Apr 21 09:32:02 PDT 2009


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

When in GTK based print dialogs, my printers are enumerated, but all their
"Print" buttons are disabled.  Each time I select a printer, the following
shows up in my error_log:

-----------------------------------------------------------------
D [20/Apr/2009:12:08:57 -0400] cupsdAcceptClient: 11 from localhost:631
(IPv6)
D [20/Apr/2009:12:08:57 -0400] cupsdReadClient: 11 GET
/printers/ricoh_aficio_2035e.ppd HTTP/1.1
D [20/Apr/2009:12:08:57 -0400] cupsdAuthorize: No authentication data
provided.
W [20/Apr/2009:12:08:57 -0400] Request from "localhost" using invalid
Host: field "::1"
D [20/Apr/2009:12:08:57 -0400] cupsdSendError: 11 code=400 (Bad Request)
D [20/Apr/2009:12:08:57 -0400] cupsdCloseClient: 11
-----------------------------------------------------------------

"::1" refers to the loopback device in IPv6.



Workaround:
I've found turning on HostNameLookups seems to work around this problem. 
I assume because the "::1" gets converted to "localhost" before it's
checked/validated.




OS: Gentoo Linux (Kernel: 2.6.27-gentoo-r8)
Compiler: GCC 4.1.2

Link: http://www.cups.org/str.php?L3162
Version: 1.3.10





More information about the cups-devel mailing list