Webdav support broken: HREF can include the full hostname
|Assignee:||Andreas Öman||% Done:|
|Found in version:||Platform:|
There is a bug in WEBDAV support, it gets triggered if using lighthttp instead of Apache: I get "WEBDAV: File not found in XML reply" when I try to add the bookmark.
I took a look at parse_propfind in fa_http.c, and it looks like this happens because of the condition " if(!strcmp(rpath, fname))".
After some investigation, I found that this condition fails because LightHttp will send the full path in the href as follow:
But Apache does not:
<D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/">
It looks like this check should be relaxed. I wonder if strstr() would be enough, or do you want something tighter for broken WebDav detection ?
It'd be great if you could fix that one, thanks!