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

Race condition in $mmFilepool#_removeFileById makes it fail

XMLWordPrintable

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

      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.

            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

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.