Bug 217556

Summary: If-Modified-Since: handling completely broken
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: cupsAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.2.7-1.5.fc6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-02 16:11:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 207681, 218764    

Description Tim Waugh 2006-11-28 16:52:48 UTC
Seen in system-config-printer strace:

access("/etc/cups/cupsd.conf", R_OK)    = -1 EACCES (Permission denied)
getuid()                                = 500
open("/tmp/456c67a658c90", O_RDWR|O_CREAT|O_EXCL, 0600) = 11
sendto(7, "GET /admin/conf/cupsd.conf HTTP/1.1\r\nAuthorization: Basic cm9vdDpsa
XRJOGxsdWlx\r\nHost: localhost\r\nIf-Modified-Since: Tue, 28 Nov 2006 16:45:24 G
MT\r\nUser-Agent: CUPS/1.2.7\r\n\r\n", 173, 0, NULL, 0) = 173
recvfrom(7, "HTTP/1.1 304 Not Modified\r\nDate: Tue, 28 Nov 2006 16:45:26 GMT\r\
nServer: CUPS/1.2\r\nConnection: Keep-Alive\r\nKeep-Alive: timeout=60\r\nContent
-Language: en_GB\r\nUpgrade: TLS/1.0,HTTP/1.1\r\n\r\n", 2048, 0, NULL, NULL) = 1
84
select(8, [7], NULL, NULL, {10, 0})     = 0 (Timeout)

Comment 1 Tim Waugh 2006-11-28 17:06:05 UTC
Test case:

#!usr/bin/python
import cups
cups.setUser('root')
cups.setServer('localhost')
cups.setEncryption(cups.HTTP_ENCRYPT_NEVER)
c=cups.Connection()
c.adminGetServerSettings()
c.adminGetServerSettings()


Comment 2 Tim Waugh 2006-11-28 17:18:48 UTC
Reported upstream.

Comment 3 Tim Waugh 2006-11-30 12:46:03 UTC
Two upstream bug reports about this.  The timeout isn't the only problem; the
connection gets closed as well.

Comment 4 Fedora Update System 2007-01-02 16:04:01 UTC
Fixed in update: cups-1.2.7-1.5.fc6