Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1753

Race condition in $mmFilepool#_removeFileById makes it fail

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.2
    • 3.1.3
    • File system
    • Moodle Mobile 3.1.3

    Description

      Now the function _getFilePath, called from _removeFileById, relies on the extension stored in the filepool object. The problem is that we're removing the filepool entry at the same time we're calling _getFilePath, creating a race condition. If the filepool object is removed fast, the delete of the physical file will fail.

      Attachments

        Issue Links

          Activity

            People

              dpalou Dani Palou
              dpalou Dani Palou
              Pau Ferrer Pau Ferrer
              Juan Leyva Juan Leyva
              Juan Leyva Juan Leyva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Oct/16