nextcloud/apps/files_external
Lukas Reschke 3b5ddb417c Copy into local file
Using the Guzzle stream directly here will only return 1739 characters for `fread` instead of all data. This leads to the problem that the stream is read incorrectly and thus the data cannot be properly decrypted => 💣

This approach copies the data into a local temporary file, as done before in all stable releases as well as other storage connectors.

While this approach will load the whole file into memory, this is already was has happened before in any stable release as well. See d608c37c90 for the breaking change.

To test this enable Google Drive as external storage and upload some files with encryption enabled. Reading the file should fail now.

Fixes https://github.com/owncloud/core/issues/22590
2016-02-25 09:40:30 +01:00
..
3rdparty update icewind/smb to 1.0.5 2016-02-09 17:09:30 +01:00
ajax Happy new year! 2016-01-12 15:02:18 +01:00
appinfo Merge pull request #22399 from owncloud/issue-22394-index-names-for-oracle 2016-02-18 11:18:32 +01:00
command Merge pull request #21773 from owncloud/files_external-list-authtype 2016-02-09 15:33:47 +01:00
controller remove global credentials 2016-02-17 13:55:27 +01:00
css Merge branch 'master' into issue_20427 2015-12-03 12:35:49 +01:00
img fix and compress files_external icon 2014-12-11 15:33:31 +01:00
js remove global credentials 2016-02-17 13:55:27 +01:00
l10n [tx-robot] updated from transifex 2016-02-25 01:58:06 -05:00
lib Copy into local file 2016-02-25 09:40:30 +01:00
migration clear mount cache when removing applicables 2016-01-20 16:32:56 +01:00
service dont die when missing an auth backend 2016-02-17 16:51:40 +01:00
templates remove global credentials 2016-02-17 13:55:27 +01:00
tests Enable upstream entrypoint changes with Ceph Docker 2016-02-23 11:52:05 +00:00
list.php Happy new year! 2016-01-12 15:02:18 +01:00
personal.php remove global credentials 2016-02-17 13:55:27 +01:00
settings.php remove global credentials 2016-02-17 13:55:27 +01:00