-
Bug
-
Resolution: Fixed
-
Minor
-
2.2.6, 2.3.3, 2.4
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
-
MDL-37014_webdav_folders -
I have a client whose webdav server returns the full server url in the 'href' element of each file & folder when using the 'PROPFIND' (ls) call.
This seems to cause all sorts of problems with the webdav repository:
- navigating into subfolders shows the path as /webdav/http://serverurl/server/path/subfolder
- subfolders are shown with no files in them
- downloaded files just contain error messages
Stripping the server URL from the 'href' attribute, before returning it to the filepicker seems to solve all of these problems (and won't cause problems on servers that were previously working, as they will not have a URL to strip out).
I will attach a patch in a moment.