Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267416 - cups-1.3.10 breaks network printing (Request from ... using invalid Host: field)
Summary: cups-1.3.10 breaks network printing (Request from ... using invalid Host: field)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-25 13:47 UTC by Wim van Ravesteijn
Modified: 2009-05-01 11:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wim van Ravesteijn 2009-04-25 13:47:30 UTC
I keep getting problems, also after enabling host name lookups. Whenever I try
to access cups via the hostname (http), I get a 400 error. Only when using the
IP, things work. Problem appeared after upgrading from 1.3.9* to 1.3.10.
Cups runs on a server, I'm trying to access it from my workstation.

Below few lines from error_log. First 2 lines are caused by a request in my
browser via http, the last 2 probably by cups running on my workstation.

W [24/Apr/2009:00:37:12 +0200] Request from "xxx.kuipnet.void" using invalid
Host: field "cups.kuipnet.void:631"
W [24/Apr/2009:00:37:12 +0200] Request from "xxx.kuipnet.void" using invalid
Host: field "cups.kuipnet.void:631"
W [24/Apr/2009:00:39:04 +0200] Request from "xxx.kuipnet.void" using invalid
Host: field "cups.kuipnet.void"
W [24/Apr/2009:00:39:14 +0200] Request from "xxx.kuipnet.void" using invalid
Host: field "cups.kuipnet.void"

Also, when client.conf on my workstation has the hostname, printer lists are
empty, but as soon as I change it to the IP, things work again.

In cupsd.conf, I have:
ServerName cups.kuipnet.void
HostNameLookups On
Listen cups.kuipnet.void:631
Comment 1 Wim van Ravesteijn 2009-04-25 14:01:53 UTC
Looked a bit more into configuration manual and searched a bit more for info on this bug, and seems that if you add the following in cupsd.conf, things work again as before:

ServerAlias *

This seems to be new compared to 1.3.9.
Comment 2 Matt 2009-05-01 11:08:28 UTC
also have a look at http://bugs.gentoo.org/show_bug.cgi?id=266678 for additional information