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

WebDav Repository is not able to display files with OwnCloud

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.1.4
    • Component/s: Repositories
    • Labels:
    • Testing Instructions:
      Hide
      1. Install OwnCloud 8 and 9
      2. In Moodle, enable the WebDav repository and create two instances, pointing to each OwnCloud

        Typical settings (replace USER with your user):
         
        Host: localhost
        Path: /remote.php/dav/files/USER
        Port: (according to your install)
        Auth: Basic
        User: USER
        Password: ****
        

      3. Confirm that you can browse and download files
      Show
      Install OwnCloud 8 and 9 E.g. using Docker https://hub.docker.com/_/owncloud/ In Moodle, enable the WebDav repository and create two instances, pointing to each OwnCloud Typical settings (replace USER with your user):   Host: localhost Path: /remote.php/dav/files/USER Port: (according to your install) Auth: Basic User: USER Password: **** Confirm that you can browse and download files
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-56915-master

      Description

      I was trying to use the Webdav repository to connect a ownCloud Instance with Moodle. The Repository showed no files. However when I increased the variable $_maxheaderlenth of the lib/mywebdavlib.php from 1000 to 65536 it worked.
      I did that due to this tip https://moodle.org/mod/forum/discuss.php?d=327423.
      I am not a experienced programmer, so correct me if this fix might bring some security issues. Otherwise I would be happy to see it implemented in the next Moodle Version.

        Attachments

          Activity

            People

            • Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Jan/17