-
Bug
-
Resolution: Fixed
-
Minor
-
3.7.8, 3.9.2, 3.11.7, 4.0.1
-
MOODLE_311_STABLE, MOODLE_37_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MDL69756_master
-
There is an ownCloud repository plugin for Moodle but it's deprecated and it recommends using the core Nextcloud repository instead. That works generally. But I've run into an issue with this when using access controlled links. There is one case where they don't work:
- Create an assignment.
- Student A hands in a file from an ownCloud server via the Nextcloud repository as "External (only links stored in Moodle)".
- Student A deletes the file again in Moodle from the assignment submissions.
- Student A hands in a file with the same name the same way as in step 2.
You get this error:
A request to owncloud-test test has failed. The requested action could not be executed. If this happens repeatedly, please contact the site administrator with the following additional information:<br />"<i>A webdav request to copy a file failed.</i>".
After encountering this error you will also have the respective file lying in the root folder of your ownCloud system user instead of being in the correct Moodle > category > course > activity etc. subfolder in ownCloud.
Cause
ownCloud returns http status code 204 which the Nextcloud repository treats as an error. See https://github.com/moodle/moodle/blob/f852aa8ad5546b8c40a5176078195c3de113b026/repository/nextcloud/classes/access_controlled_link_manager.php#L210
- is blocked by
-
MDL-74718 All files from nextcloud instance are not shown in moodle
- Closed