Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-37014

Webdav repositories not working for some servers

    Details

    • Testing Instructions:
      Hide
      1. set up a webdav repository
      2. create a forum post
      3. add an attachment to the forum, from the webdav repository
        1. confirm you can navigate to subfolders and list all files in those subfolders
        2. confirm that any files selected download successfully
      Show
      set up a webdav repository create a forum post add an attachment to the forum, from the webdav repository confirm you can navigate to subfolders and list all files in those subfolders confirm that any files selected download successfully
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:
      MDL-37014_webdav_folders

      Description

      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:

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jan/13