Project

General

Profile

Actions

Bug #1886

closed

Lighttpd 1.5.0 r2378 (mod_webdav) sends 100 Continue even if parent directory doesn't exist

Added by petchema almost 16 years ago. Updated almost 16 years ago.

Status:
Invalid
Priority:
Normal
Category:
mod_webdav
Target version:
ASK QUESTIONS IN Forums:

Description

403 Forbidden is only sent at the end of upload:

$ curl --trace-ascii /tmp/put.trace -X PUT -T /etc/passwd http://mgfs-master/directory_that_does_not_exist/4242
$ cat /tmp/put.trace
== Info: About to connect() to mgfs-master port 80
== Info:   Trying 192.168.1.80... == Info: connected
== Info: Connected to mgfs-master (192.168.1.80) port 80
=> Send header, 228 bytes (0xe4)
0000: PUT /directory_that_does_not_exist/4242 HTTP/1.1
0032: User-Agent: curl/7.15.5 (x86_64-pc-linux-gnu) libcurl/7.15.5 Ope
0072: nSSL/0.9.8c zlib/1.2.3 libidn/0.6.5
0097: Host: mgfs-master
00aa: Accept: */*
00b7: Content-Length: 892
00cc: Expect: 100-continue
00e2: 
<= Recv header, 23 bytes (0x17)
0000: HTTP/1.1 100 Continue
<= Recv header, 37 bytes (0x25)
0000: Date: Tue, 03 Feb 2009 14:28:01 GMT
<= Recv header, 24 bytes (0x18)
0000: Server: lighttpd/1.5.0
=> Send data, 892 bytes (0x37c)
0000: root:x:0:0:root:/root:/bin/bash.daemon:x:1:1:daemon:/usr/sbin:/b
0040: in/sh.bin:x:2:2:bin:/bin:/bin/sh.sys:x:3:3:sys:/dev:/bin/sh.sync
0080: :x:4:65534:sync:/bin:/bin/sync.games:x:5:60:games:/usr/games:/bi
00c0: n/sh.man:x:6:12:man:/var/cache/man:/bin/sh.lp:x:7:7:lp:/var/spoo
0100: l/lpd:/bin/sh.mail:x:8:8:mail:/var/mail:/bin/sh.news:x:9:9:news:
0140: /var/spool/news:/bin/sh.uucp:x:10:10:uucp:/var/spool/uucp:/bin/s
0180: h.proxy:x:13:13:proxy:/bin:/bin/sh.www-data:x:33:33:www-data:/va
01c0: r/www:/bin/sh.backup:x:34:34:backup:/var/backups:/bin/sh.list:x:
0200: 38:38:Mailing List Manager:/var/list:/bin/sh.irc:x:39:39:ircd:/v
0240: ar/run/ircd:/bin/sh.gnats:x:41:41:Gnats Bug-Reporting System (ad
0280: min):/var/lib/gnats:/bin/sh.nobody:x:65534:65534:nobody:/nonexis
02c0: tent:/bin/sh.xxxxxxxx:x:1000:1000:xxxxxxxxxxxxxxxxx,,,:/home/xxx
0300: xxxxx:/bin/bash.sshd:x:100:65534::/var/run/sshd:/usr/sbin/nologi
0340: n.mysql:x:101:103:MySQL Server,,,:/var/lib/mysql:/bin/false.
<= Recv header, 24 bytes (0x18)
0000: HTTP/1.1 403 Forbidden
<= Recv header, 25 bytes (0x19)
0000: Content-Type: text/html
<= Recv header, 21 bytes (0x15)
0000: Content-Length: 345
<= Recv header, 37 bytes (0x25)
0000: Date: Tue, 03 Feb 2009 14:28:01 GMT
<= Recv header, 24 bytes (0x18)
0000: Server: lighttpd/1.5.0
<= Recv data, 345 bytes (0x159)
0000: <?xml version="1.0" encoding="iso-8859-1"?>.<!DOCTYPE html PUBLI
0040: C "-//W3C//DTD XHTML 1.0 Transitional//EN".         "http://www.
0080: w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">.<html xmlns="http
00c0: ://www.w3.org/1999/xhtml" xml:lang="en" lang="en">. <head>.  <ti
0100: tle>403 - Forbidden</title>. </head>. <body>.  <h1>403 - Forbidd
0140: en</h1>. </body>.</html>.
== Info: Connection #0 to host mgfs-master left intact
== Info: Closing connection #0

I would have expected 100 Continue to be sent only after the file has been successfully created.
I'm not sure whether it's a mod_webdav or core problem.

Actions #1

Updated by stbuehler almost 16 years ago

  • Status changed from New to Invalid

I don't see a bug here. 100 Continue does not guarantee success.

Actions #2

Updated by petchema almost 16 years ago

100 Continue

Actions

Also available in: Atom