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

Teachers cannot upload files on behalf of the students any more

    Details

    • Testing Instructions:
      Hide

      Test pre-requisites

      1. Grant authenticated users permission to view webdav repositories
      2. Enable the following repositories:
        • Webdav
        • Dropbox
        • Upload
        • Private files
      3. As Student A create a user instance of Webdav
      4. As Student A browse your Dropbox repository (do not logout)
      5. As Student A confirm you can upload a file to your private files

      Test steps

      1. As a teacher
      2. Add an assignment (with file upload enabled) to a course
      3. Use the login as feature to login as Student A
      4. Visit the assignment, and confirm
        • You can upload a file
        • You can browse the private files
        • You cannot browse the Webdav instance
        • You cannot browse the Dropbox repository

      Test 2

      1. Keep the configuration of the previous test
      2. Use the login as feature to login as the Student A
      3. Go to Home ► My profile ► Repositories ► Student A ► Repositories
      4. Confirm
        • You cannot edit the webdav instance
        • You cannot delete the webdav instance
      5. Login as the student (Do not use login as feature this time)
      6. Go to Home ► My profile ► Repositories ► Student A ► Repositories
      7. Confirm
        • You can edit the webdav instance
        • You can delete the webdav instance
      Show
      Test pre-requisites Grant authenticated users permission to view webdav repositories Enable the following repositories: Webdav Dropbox Upload Private files As Student A create a user instance of Webdav As Student A browse your Dropbox repository (do not logout) As Student A confirm you can upload a file to your private files Test steps As a teacher Add an assignment (with file upload enabled) to a course Use the login as feature to login as Student A Visit the assignment, and confirm You can upload a file You can browse the private files You cannot browse the Webdav instance You cannot browse the Dropbox repository Test 2 Keep the configuration of the previous test Use the login as feature to login as the Student A Go to Home ► My profile ► Repositories ► Student A ► Repositories Confirm You cannot edit the webdav instance You cannot delete the webdav instance Login as the student (Do not use login as feature this time) Go to Home ► My profile ► Repositories ► Student A ► Repositories Confirm You can edit the webdav instance You can delete the webdav instance
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull from Repository:

      Description

      after patching to 2.4.2 our course managers can no longer use the loginas feature to login as a student and upload an assignment. The loginas appears to still work but when the upload is attempted "No Permission to access this repository" is displayed. Students can still login and upload files with no problem. This was working before we upgraded last week and I can find no information if a change to this was applied. We updated from 2.4.1+(Build: 20130118). This error is produced for managers in both the course or system context. This is a real work stopper as we upload files for students every day. This error is still present after upgrading to Moodle 2.4.3 (Build: 20130318)

      Steps to reproduce:
      Log in as Manager
      Browse to Course and Assignment you need to upload file for
      go into View/grade all submissions
      Click on Student you want to upload for
      Use "Login As" for that student and continue
      Go to Assignment
      Click add Submission
      then attempt to add by clicking add in filepicker or dragging file,

      Returns "No permission to access this repository"

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  25 Vote for this issue
                  Watchers:
                  29 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    13/May/13