Hi everybody,
I configured a Onedrive repository as below:
When trying to add a file to a course, from this Onedrive repository:
- with "Make a copy of the file" mode it works fine,
- with "Create an access controlled link to the file", when saving the resource I get:
Exception - nameAlreadyExists: The specified item name already exists.
More information about this error
Debug info:
Error code: generalexceptionmessage
Stack trace:
line 123 of /lib/classes/oauth2/rest.php: core\oauth2\rest_exception thrown
line 674 of /repository/onedrive/lib.php: call to core\oauth2\rest->call()
line 943 of /repository/onedrive/lib.php: call to repository_onedrive->create_folder_in_folder()
line 1224 of /lib/filelib.php: call to repository_onedrive->reference_file_selected()
line 535 of /mod/resource/locallib.php: call to file_save_draft_area_files()
line 107 of /mod/resource/lib.php: call to resource_set_mainfile()
line 128 of /course/modlib.php: call to resource_add_instance()
line 159 of /course/modedit.php: call to add_moduleinfo()
I'm on Moodle 3.9.1+ (Build: 20200903) but reproduced the same issue with 2 test instances, on Moodle 3.9.3 (Build: 20201109) and Moodle 3.8.4 (Build: 20200713).
The Microsoft account is an O365 - "education" licence.
Any idea?