moodle/repository
Tim Hunt 3e88ef17bf MDL-82177 file upload: default to path '/'when things go wrong
This 'fix' is basically a work-around, but one that is already used in
some places. Now it is used in all similar places.

Exactly what causes the current file path in a file manager to become
unset is still unclear to me, but it seems to be an obscure race
condition that is very hard to reproduce.

However, when it happens, currently we are effectively defaulting to
path '/undefined/'. Using '/' is never worse, and is infinitely better
in the case where the filepicker does not allow folders to be used
(which includes important cases like essay questions in a quiz, which
some people use for exams!). In that case, falling back to non-top-level
path leads to dataloss.

Also, this is all historic JavaScript which will get replaced in the
grand de-YUI-fication, so I think a pragmatic fix is justified here.
2024-07-30 09:22:05 +01:00
..
areafiles MDL-81549 versions: bump all versions and requires near release 2024-04-17 00:03:29 +08:00
classes/privacy MDL-65292 style: Fix all function declarations white space 2024-02-28 23:33:26 +01:00
contentbank MDL-81522 phpunit: Add missing void return type to all tests #2 2024-06-11 11:55:08 +02:00
coursefiles MDL-81549 versions: bump all versions and requires near release 2024-04-17 00:03:29 +08:00
dropbox MDL-81522 phpunit: Add missing void return type to all tests #2 2024-06-11 11:55:08 +02:00
equella MDL-81982 lang: Fix strings order 2024-06-05 10:25:29 +08:00
filesystem MDL-81549 versions: bump all versions and requires near release 2024-04-17 00:03:29 +08:00
flickr MDL-81523 phpunit: Add all missing setUp/tearDown parent calls 2024-06-14 16:04:57 +02:00
flickr_public MDL-81549 versions: bump all versions and requires near release 2024-04-17 00:03:29 +08:00
googledocs MDL-81522 phpunit: Add missing void return type to all tests 2024-06-11 11:55:07 +02:00
local MDL-81549 versions: bump all versions and requires near release 2024-04-17 00:03:29 +08:00
merlot MDL-81549 versions: bump all versions and requires near release 2024-04-17 00:03:29 +08:00
nextcloud MDL-81523 phpunit: Add all missing setUp/tearDown parent calls 2024-06-14 16:04:57 +02:00
onedrive MDL-81523 phpunit: Add all missing setUp/tearDown parent calls 2024-06-14 16:04:57 +02:00
recent MDL-81523 phpunit: Add all missing setUp/tearDown parent calls 2024-06-14 16:04:57 +02:00
s3 MDL-81549 versions: bump all versions and requires near release 2024-04-17 00:03:29 +08:00
tests MDL-82373 behat: Stop calling ensure_node_is_visible before click 2024-07-17 09:28:34 +08:00
upload MDL-82373 behat: Stop calling ensure_node_is_visible before click 2024-07-17 09:28:34 +08:00
url MDL-81522 phpunit: Add missing void return type to all tests 2024-06-11 11:55:07 +02:00
user MDL-81549 versions: bump all versions and requires near release 2024-04-17 00:03:29 +08:00
webdav MDL-81549 versions: bump all versions and requires near release 2024-04-17 00:03:29 +08:00
wikimedia MDL-81549 versions: bump all versions and requires near release 2024-04-17 00:03:29 +08:00
youtube MDL-81549 versions: bump all versions and requires near release 2024-04-17 00:03:29 +08:00
draftfiles_ajax.php MDL-81060 core: fix incorrect userquota usage in zip_packer 2024-04-08 09:08:24 +07:00
draftfiles_manager.php MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
filepicker.js MDL-82177 file upload: default to path '/'when things go wrong 2024-07-30 09:22:05 +01:00
filepicker.php MDL-74251 core: Remove old icon helper classes 2024-06-27 18:28:05 +02:00
lib.php MDL-77838 repository: preserve empty dirs in download if selected. 2024-03-22 16:21:18 +00:00
manage_instances.php MDL-74466 repository: avoid passing around sesskey when not required. 2023-12-04 09:22:27 +00:00
README.txt MDL-77708 docs: Update references from docs.moodle.org/dev 2023-09-26 10:30:19 +02:00
repository_ajax.php MDL-78884 files: Deprecate size parameter for icons 2023-08-23 07:30:16 +02:00
repository_callback.php MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
upgrade.txt MDL-81125 core: Update upgrade.txt files to document new upgrade notes 2024-05-20 22:26:45 +08:00

Repository API
==============

This directory contains all the interfaces and plugins for access to repositories.

   Specs:  https://moodledev.io/docs/apis/plugintypes/repository
   Track:  http://tracker.moodle.org/browse/MDL-13766