[cups.bugs] [HIGH] STR #3902: admin functionality broken in 1.5.0

Matt L mattl at google.com
Tue Jul 26 13:43:38 PDT 2011


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

[STR New]

In 1.5.0 (stable): Admin functionality has broken across many tools
including the web interface, lpadmin, cancel, etc.  Running these commands
produces the error text 'Unknown'.  This has been observed happening
consistently when trying to run cancel, lpadmin to set the default printer
or change drivers, the web interface to add new printers, and others.  The
identical configuration files used to reproduce these worked correctly as
of 1.4.6.

A partial strace of 'cancel -a' working correctly in 1.4.6:

socket(PF_FILE, SOCK_STREAM, 0)         = 3
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = -1 EOPNOTSUPP (Operation not
supported)
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
connect(3, {sa_family=AF_FILE, path="/var/run/cups/cups.sock"}, 26) = 0
gettimeofday({1311712230, 950364}, NULL) = 0
gettimeofday({1311712230, 950526}, NULL) = 0
sendto(3, "POST /admin/ HTTP/1.1\r\nAuthoriza"..., 170, 0, NULL, 0) = 170
gettimeofday({1311712230, 952818}, NULL) = 0
gettimeofday({1311712230, 952992}, NULL) = 0
sendto(3, "\1\1\0\22\0\0\0\1\1G\0\22attributes-charset\0\5"..., 161, 0,
NULL, 0) = 161
poll([{fd=3, events=POLLIN}], 1, 1000)  = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "HTTP/1.1 100 Continue\r\n\r\nHTTP/1."..., 2048, 0, NULL,
NULL) = 298
gettimeofday({1311712230, 954974}, NULL) = 0
gettimeofday({1311712230, 955136}, NULL) = 0
exit_group(0)                           = ?


The same strace of 'cancel -a' failing with identical config, 1.5.0:

socket(PF_FILE, SOCK_STREAM, 0)         = 3
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = -1 EOPNOTSUPP (Operation not
supported)
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
connect(3, {sa_family=AF_FILE, path="/var/run/cups/cups.sock"}, 26) = 0
gettimeofday({1311712529, 185839}, NULL) = 0
gettimeofday({1311712529, 185911}, NULL) = 0
sendto(3, "POST /admin/ HTTP/1.1\r\nAuthoriza"..., 170, 0, NULL, 0) = 170
gettimeofday({1311712529, 186798}, NULL) = 0
gettimeofday({1311712529, 186869}, NULL) = 0
sendto(3, "\1\1\0\22\0\0\0\1\1G\0\22attributes-charset\0\5"..., 161, 0,
NULL, 0) = 161
gettimeofday({1311712529, 188428}, NULL) = 0
gettimeofday({1311712529, 188501}, NULL) = 0
write(2, "cancel: purge-jobs failed: Unkno"..., 35cancel: purge-jobs
failed: Unknown
) = 35
exit_group(1)           

Highly recommend looking into changes in r9688 as potentially being
involved, as applying this diff to 1.4.6 produced similar issues.

Link: http://www.cups.org/str.php?L3902
Version: 1.5rc1





More information about the cups mailing list