Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-1 Moodle QA testing
  3. MDLQA-10376

A user can access WebDav repository with basic authentication

    XMLWordPrintable

    Details

      Description

      Test pre-requisites

      • WebDAV server supporting SSL (HTTPS)
      • Two WebDAV shares with Basic authentication
      • WebDAV repository enabled
      • Authenticated user role allowed to view WebDAV repositories
      • Two different WebDAV instances in Moodle:
        • 'WebDAV HTTP + basic authentication
        • 'WebDAV HTTPS + basic authentication
      • Each share should contain multiple directories, sub directories, and files on every level.
      • Some directories and files must contain non-ascii characters

      Test steps

      1. Go to your private files
      2. Click on add
      3. Navigate to each WebDAV repository
      4. From each of them, make sure:
      • You can navigate in every directory
      • You can download any file
      • Files downloaded are correctly saved (check their content)

      WebDAV Apache configuration file which can be refereed

      This is an example configuration for the two shares

      /etc/apache2/conf.d/webdav.conf

      Alias /webdav /var/www/webdav
      <Location /webdav>
        Dav On
        AuthType Basic
        AuthName "webdav"
        AuthUserFile /var/www/webdav/passwd.dav
        Require valid-user
       </Location>
       
      DavDepthInfinity On
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: