Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-27382

Error picking file (image) from Dropbox plugin

    XMLWordPrintable

    Details

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dongsheng Dongsheng Cai
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Integrator:
              Sam Hemelryk
              Tester:
              Sam Hemelryk
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                5/May/11