-
Bug
-
Resolution: Fixed
-
Critical
-
2.0.2
-
MOODLE_20_STABLE
-
MOODLE_20_STABLE
-
git@github.com:dongsheng/moodle.git
-
s9_
MDL-27382_dropbox_get_file_fix_master -
This is one followup of MDL-27330
When testing the original issue (that has been integrated), it has been detected and reproduced both from local installation and qa.moodle.net that, once one file is picked, it is, somehow stored into some incorrect place, resulting in various warnings and/or broken images depending of the debugging level.
This is what I get:
ERROR: Invalid JSON string
|
|
( ! ) Warning: file_put_contents(eloy_avatar2006_gorila4skype.gif) [function.file-put-contents]: failed to open stream: Permission denied in /repository/dropbox/locallib.php on line 79
|
Call Stack
|
#TimeMemoryFunctionLocation
|
10.0001643696{main}( )../repository_ajax.php:0
|
20.05424360536repository_dropbox->get_file( )../repository_ajax.php:213
|
30.05424360752dropbox->get_file( )../lib.php:254
|
40.64074369200file_put_contents
|
( )../locallib.php:79
|
|
|
|
( ! ) Warning: filesize() [function.filesize]: stat failed for eloy_avatar2006_gorila4skype.gif in /repository/repository_ajax.php on line 220
|
Call Stack
|
#TimeMemoryFunctionLocation
|
10.0001643696{main}( )../repository_ajax.php:0
|
20.64114368248filesize
|
( )../repository_ajax.php:220
|
|
{"error":"Can not read file, either file does not exist or there are permission problems","stacktrace":"* line 1048 of \/lib\/filestorage\/file_storage.php: file_exception thrown\n* line 810 of \/lib\/filestorage\/file_storage.php: call to file_storage->add_file_to_pool()\n* line 1003 of \/repository\/lib.php: call to file_storage->create_file_from_pathname()\n* line 243 of \/repository\/repository_ajax.php: call to repository::move_to_filepool()\n","debuginfo":null,"reproductionlink":"http:\/\/127.0.0.1\/~stronk7\/integration\/"}
|
I've tried it also with filename without spaces nor underscores (just in case that could be the problem above) and got 100% same error.
So something is really wrong when saving that file locally.
Ciao
- has been marked as being related by
-
MDL-27330 Wrong Dropbox authorization URL
-
- Closed
-