Bug #2226

X-Sendfile failure should not result in 200 OK

Added by Olaf-van-der-Spek about 4 years ago. Updated about 4 years ago.

Status:FixedStart date:2010-06-15
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:mod_fastcgi
Target version:1.4.27
Missing in 1.5.x:No

Description

read(8, "\1\6\0\1\0G\0\0Content-Type: image/jpeg\r\nX-Sendfile: /home/olaf/issues_files/2.bin\r\n\r\n\1\6\0\1\0\0\0\0\1\3\0\1\0\0\0\0\0\0\0\0\0\0\0\0", 103) = 103
stat64("/home/olaf/issues_files/2.bin", 0xbffff1fc) = -1 EACCES (Permission denied)
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0
write(3, "2010-06-15 22:07:47: (mod_fastcgi.c.2680) send-file error: couldn't get stat_cache entry for: /home/olaf/issues_files/2.bin \n", 125) = 125
epoll_ctl(6, EPOLL_CTL_DEL, 8, {0, {u32=0, u64=0}}) = 0
close(8)                                = 0
setsockopt(7, SOL_TCP, TCP_CORK, [1], 4) = 0
writev(7, [{"HTTP/1.1 200 OK\r\nContent-Type: image/jpeg\r\nContent-Length: 0\r\nDate: Tue, 15 Jun 2010 20:07:47 GMT\r\nServer: lighttpd/1.4.26\r\n\r\n", 126}, {"", 0}], 2) = 126

Associated revisions

Revision 2735
Added by stbuehler about 4 years ago

mod_fastcgi: Send 502 "Bad Gateway" if we couldn't open the file for X-Sendfile (fixes #2226)

History

#1 Updated by stbuehler about 4 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2735.

#2 Updated by stbuehler about 4 years ago

  • Target version changed from 1.4.28 to 1.4.27

Also available in: Atom