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

Race condition in $mmFilepool#_removeFileById makes it fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.1.3
    • Component/s: File system
    • Labels:
    • Sprint:
      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

              Assignee:
              dpalou Dani Palou
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Pau Ferrer Pau Ferrer
              Integrator:
              Juan Leyva Juan Leyva
              Tester:
              Juan Leyva Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                19/Oct/16