moodle-tool_objectfs
moodle-tool_objectfs copied to clipboard
Object file storage system for Moodle
I think there is missing logi here to only do this for remote files: https://github.com/catalyst/moodle-tool_objectfs/blob/master/classes/local/store/object_file_system.php#L426 If the file is not remote then we can default back to normal sendfile https://github.com/catalyst/moodle-tool_objectfs/issues/341
* [ ] add this to the testing page * [ ] add warning to the setting when $CFG->allowframembedding is not set
If we have a public and immutable url, then the varnish / cdn layer above moodle will see this and cache it forever and never hit moodle again after that....
Running phpunit with `$CFG->phpunit_objectfs_swift_integration_test_credentials` defined I'm having this: ``` 1) tool_objectfs\tests\checker_testcase::test_checker_get_location_local_if_object_is_local Error: Class 'tool_objectfs\tests\test_swift_integration_client' not found /siteroot/admin/tool/objectfs/tests/classes/test_file_system.php:71 /siteroot/admin/tool/objectfs/classes/local/store/object_file_system.php:61 /siteroot/admin/tool/objectfs/tests/tool_objectfs_testcase.php:38 /siteroot/admin/tool/objectfs/tests/checker_test.php:33 /siteroot/lib/phpunit/classes/advanced_testcase.php:80 To re-run: vendor/bin/phpunit -c admin/tool/objectfs/ "tool_objectfs\tests\checker_testcase" admin/tool/objectfs/tests/checker_test.php ERRORS! ```...
* [ ] Add proxy support for DO storage. * [ ] Add proxy support for Azure storage. * [ ] Add proxy support for Swift storage. See https://github.com/catalyst/moodle-tool_objectfs/issues/99
There should be a way to add new object stores. Maybe sub-plugins. We want to add a custom object-store. For this, we had to make a few minor changes in...
When running `php admin/tool/phpunit/cli/init.php` I get: ``` PHP Fatal error: Class 'MicrosoftAzure\Storage\Common\Internal\Resources' not found in /siteroot/admin/tool/objectfs/classes/local/store/azure/file_system.php on line 37 PHP Stack trace: PHP 1. {main}() /siteroot/admin/tool/phpunit/cli/util.php:0 PHP 2. phpunit_util::install_site() /siteroot/admin/tool/phpunit/cli/util.php:150...
Another issue that looks to be CF configuration issue. Error: ``` InvalidArgument Only one auth mechanism allowed; only the X-Amz-Algorithm query parameter, Signature query string parameter or the Authorization header...
Screenshot: 
https://github.com/catalyst/moodle-tool_objectfs/blob/0853be4f4a7f00122d9c71402e21857f0aa7b448/classes/local/store/s3/client.php#L406 We use Lambda@Edge functions to implement custom logic for generating pre-signed URLs. We use them for the following two use cases. 1. There could only be two CloudFront Key...