Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.9.4, 3.10.1, 3.11, 4.0
-
None
Description
Google Docs and OneDrive repository have fixed timeout settings.
Steps to reproduce.
- Set "Get file timeout" to any number say 60 seconds under Site Administration > Plugins > Repositories > Common Repository settings. This settings is currently not being used in all instances.
- Try uploading a file greater than 400MB using OneDrive Repository. There is no relation to file size. File should be large enough to cause the timeout.
Expectation
- Changing the "Get File Timeout" in shared repository settings allows to increase the timeout and users able to upload bigger files.
- Even when timeout does occur, get_file function should adequately check for result.
Actually happens
- Changing the "Get File Timeout" settings does not change the behaviour as OneDrive and GoogleDocs don't follow the setting.
- Even when a timeout does occur, it shows an ambiguous message "Cannot read file. Either the file does not exist or there is a permission problem". OneDrive and GoogleDocs repositories only check for truthiness of result and non empty error string qualifies for a successful download