Bug #1577
mod_auth breaks webdav options request
| Status: | Fixed | Start: | ||
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | core | |||
| Target version: | 1.4.19 | |||
| Pending: | No |
Resolution: | duplicate |
|
Description
$HTTP["url"] =~ "^/download($|/)" {
webdav.activate = "enable"
webdav.is-readonly = "enable"
}
else $HTTP["url"] =~ "^/download/market-upload($|/)" {
webdav.activate = "enable"
webdav.is-readonly = "disable"
}
auth.backend = "htdigest"
auth.backend.htdigest.userfile = "/etc/lighttpd/users.txt"
auth.require = ( "/download/market-upload" =>
(
"method" => "digest",
"realm" => "e-ther market",
"require" => "valid-user"
),
)
request:
OPTIONS /download/market-upload HTTP/1.1 User-Agent: Microsoft Data Access Internet Publishing Provider Protocol Discovery Host: www.e-ther.cn Content-Length: 0 Connection: Keep-Alive
response:
HTTP/1.1 200 OK WWW-Authenticate: Digest realm="e-ther market", nonce="bbbc88d24618f27a163a86045 d0097c3", qop="auth" Allow: OPTIONS, GET, HEAD, POST Content-Length: 0 Date: Sun, 02 Mar 2008 10:09:40 GMT Server: lighttpd/1.4.18
expected: {{{Allow: PROPFIND, DELETE, MKCOL, PUT, MOVE, COPY, PROPPATCH, LOCK, UNLOCK}}}