https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412008-11-05T21:14:38Zlighty labsLighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=50682008-11-05T21:14:38Ztibob
<ul></ul><p>I can confirm this bug on lighttpd 1.4.13-4etch11 (debian etch).</p> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=53332009-02-05T15:38:00Zicy
<ul><li><strong>Target version</strong> changed from <i>1.4.21</i> to <i>1.4.22</i></li><li><strong>Patch available</strong> set to <i>No</i></li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=55792009-02-28T20:02:44Zstbuehler
<ul><li><strong>Target version</strong> changed from <i>1.4.22</i> to <i>1.4.23</i></li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=60362009-06-10T17:27:22Zstbuehler
<ul><li><strong>Target version</strong> changed from <i>1.4.23</i> to <i>1.4.24</i></li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=64082009-10-11T17:12:25Zstbuehler
<ul><li><strong>Target version</strong> changed from <i>1.4.24</i> to <i>1.4.x</i></li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=68832010-04-13T20:22:10ZDenisKlimek
<ul></ul><p>Hello,</p>
<p>I can confirm this bad bug too.</p>
<p>Got two systems with Lighttpd and this failure behavoir.</p>
<p>system a:<br />lighttpd 1.4.19-5+lenny1<br />lighttpd-mod-webdav 1.4.19-5+lenny1</p>
<p>system b:<br />lighttpd 1.4.26-1.1<br />lighttpd-mod-webdav 1.4.26-1.1</p>
<p>Any workarounds or solutions available?</p>
<p>My configuration looks like:</p>
<pre>
$HTTP["host"] =~ "(www\.)?(website)\.(de)" {
server.indexfiles = ( "index.php" )
server.document-root = "/var/cluster/web/website/old"
accesslog.filename = "/var/log/lighttpd/website/old/access.log"
server.errorlog = "/var/log/lighttpd/website/old/error.log"
alias.url += ( "/forum" => "/var/cluster/web/website/www/forum", )
alias.url += ( "/icon" => "/var/cluster/web/website/services/awstats/icon", )
alias.url += ( "/users" => "/var/cluster/web/website/users", )
$HTTP["url"] =~ "^/users/denis/webdav($|/)" {
server.document-root = "/var/cluster/web/website/users/denis/webdav/"
webdav.activate = "enable"
webdav.is-readonly = "disable"
webdav.sqlite-db-name = "/var/run/lighttpd/lighttpd.webdav_lock.db"
auth.backend = "plain"
auth.backend.plain.userfile = "/var/cluster/web/website/users/denis.pwd"
auth.require = ( "" => ( "method" => "basic", "realm" => "Webdav", "require" => "valid-user" ) )
}
}
</pre> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=79402012-10-12T11:45:15Ztomas.srnka
<ul></ul><p>Hello,</p>
<p>I confirm that this problem is still valid with lighttpd-1.4.31-1.el6.x86_64, tested on Scientific Linux 6.3.</p>
<p>Can you please have a look at it?</p> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=79682012-11-08T11:17:11Zstbuehler
<ul><li><strong>Assignee</strong> deleted (<del><i>jan</i></del>)</li><li><strong>Target version</strong> changed from <i>1.4.x</i> to <i>1.4.32</i></li><li><strong>Missing in 1.5.x</strong> set to <i>No</i></li></ul>Implementation note:
<ul>
<li>Working across aliases is probably not possible (doc-root similar settings might be in url conditionals, so we'd need to simulate a complete second request to evaluate the config options)</li>
<li>it should use the same "doc-root"/"alias" base</li>
</ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=79872012-11-17T12:40:40Zstbuehler
<ul><li><strong>Target version</strong> changed from <i>1.4.32</i> to <i>1.4.33</i></li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=81472013-08-30T15:53:06Zstbuehler
<ul><li><strong>Target version</strong> changed from <i>1.4.33</i> to <i>1.4.34</i></li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=82672013-12-03T15:26:09Zdarix
<ul><li><strong>Target version</strong> changed from <i>1.4.34</i> to <i>1.4.35</i></li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=82702013-12-03T22:52:48Zgiuse_pes
<ul><li><strong>File</strong> <a href="/attachments/1536">1787-webdav.c.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/1536/1787-webdav.c.patch">1787-webdav.c.patch</a> added</li><li><strong>Status</strong> changed from <i>New</i> to <i>Patch Pending</i></li></ul><p>Fix MOVE and COPY requests when an aliased directory is specified as WEBDAV folder. Please let me know if there is any problem and if it is required more testing.</p>
<p>Thanks <br />Giuseppe</p>
<p>Configuration used for testing :</p>
<blockquote>
<p>server.document-root = "/home/giuseppe/www" <br />server.port = 8080</p>
<p>server.username = "giuseppe" <br />server.groupname = "giuseppe"</p>
<p>server.modules = ("mod_access", "mod_auth", "mod_setenv", "mod_fastcgi", "mod_alias", "mod_rewrite", "mod_redirect", "mod_helloworld", "mod_webdav" )<br />server.modules += ("mod_accesslog")<br />server.errorlog = "/home/giuseppe/git/lighttpd1.4/error.log"</p>
<p>debug.log-file-not-found = "enable" <br />debug.log-request-header = "enable" <br />debug.log-request-handling = "enable" <br />debug.log-response-header = "enable" <br />webdav.log-xml = "enable"</p>
<p>server.network-backend = "linux-sendfile"</p>
<p>dir-listing.activate = "enable"</p>
<p>mimetype.assign = (<br />".html" => "text/html", <br />".htm" => "text/html", <br />".jpg" => "image/jpeg",<br />".png" => "image/png" <br />)</p>
<p>fastcgi.server = ( ".php" => (( <br />"bin-path" => "/usr/bin/php-cgi",<br />"socket" => "/tmp/php-fastcgi.socket" <br />)))</p>
<p>static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc" )<br />index-file.names = ( "index.html" )<br />index-file.names += ( "index.htm" )<br />index-file.names += ( "index.php" )</p>
<p>auth.debug = 2<br />auth.backend = "plain" <br />auth.backend.plain.userfile = "/home/giuseppe/Dropbox/PlayGround/lighttpd/lighttpd.user" <br />auth.require = ( "/private/index.html" =><br />(<br />"method" => "basic",<br />"realm" => "test",<br />"require" => "user=test" <br />)<br />)</p>
<p>auth.require += ( "/test/index.htm" =><br />(<br />"method" => "basic",<br />"realm" => "test",<br />"require" => "user=test" <br />)<br />)</p>
<p>alias.url = ( "/webdav" => "/home/giuseppe/dav/" )<br />$HTTP["url"] =~ "^/webdav($|/)" {<br />webdav.activate = "enable" <br />webdav.is-readonly = "disable" <br />}</p>
<p>$HTTP["url"] =~ "^/test($|/)" {<br />server.document-root = "/home/giuseppe/" <br />webdav.activate = "enable" <br />webdav.is-readonly = "disable" <br />}</p>
<p>url.rewrite-once = ("^/music$" => "/redirect/")</p>
</blockquote> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=82812013-12-05T22:37:19Zgiuse_pes
<ul></ul><p>HI guys,</p>
<p>As it has been pointed out in the chat, this patch has some drawbacks. Can someone show me a context on which this patch may be dangerous or not work properly? <br />I am sorry for being stubborn, but I just want to understand better my errors and improve my knowledge regarding Lighttpd.</p>
<p>Thanks for your time.</p> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=83312014-03-11T13:28:07Zstbuehler
<ul><li><strong>Target version</strong> changed from <i>1.4.35</i> to <i>1.4.36</i></li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=84982015-07-05T17:30:31Zstbuehler
<ul><li><strong>Target version</strong> changed from <i>1.4.36</i> to <i>1.4.x</i></li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=93552016-04-11T20:31:46Zgstrauss
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/1359">Bug #1359</a>: alias, auth etc are not checked for destination path for webdav operations</i> added</li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=94242016-04-18T21:06:14Zgstrauss
<ul></ul><p>Anyone still watching this ticket who would be willing to test out a patch I wrote?</p> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=94752016-04-27T14:37:24Zgstrauss
<ul><li><strong>Target version</strong> changed from <i>1.4.x</i> to <i>1.4.40</i></li></ul><p><a class="external" href="https://github.com/lighttpd/lighttpd1.4/pull/61">https://github.com/lighttpd/lighttpd1.4/pull/61</a></p> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=95642016-05-09T05:50:09Zgstrauss
<ul><li><strong>Status</strong> changed from <i>Patch Pending</i> to <i>Fixed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="[mod_webdav] map COPY/MOVE Destination to aliases (fixes #1787) attempt to remap COPY/MOVE Desti..." href="https://redmine.lighttpd.net/projects/lighttpd/repository/14/revisions/e0115208ec9f3f896509dccf373357f0e329e3b0">e0115208ec9f3f896509dccf373357f0e329e3b0</a>.</p> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=130872022-01-25T03:44:17ZDonaldtat
<ul><li><strong>File</strong> <i>535.gif</i> added</li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=130882022-01-25T05:56:36Zgstrauss
<ul><li><strong>File</strong> deleted (<del><i>535.gif</i></del>)</li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=130892022-01-25T07:00:13ZRubenAcuri
<ul><li><strong>File</strong> <i>1561.gif</i> added</li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=130902022-01-25T07:03:27Zgstrauss
<ul><li><strong>File</strong> deleted (<del><i>1561.gif</i></del>)</li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=130912022-01-25T07:19:38ZBobbyexpox
<ul><li><strong>File</strong> <i>1395.gif</i> added</li></ul> Lighttpd - Bug #1787: Bug in mod_webdav when using aliases and MOVE commandhttps://redmine.lighttpd.net/issues/1787?journal_id=130922022-01-25T08:32:44Zstbuehler
<ul><li><strong>File</strong> deleted (<del><i>1395.gif</i></del>)</li></ul>