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

File store cache creates directories using reserved names on windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.4.6, 2.5.2
    • 2.4.5, 2.5.1
    • Caching

      Reported in the comments on my contenteditable plugin:

      It crashed with the following message: "Coding error detected, it must be fixed by a programmer: [cachedir]/cachestore_file/default_application/core_pluginlist/con directory can not be created, file with the same name already exists

      Reported by 2 users here:
      https://moodle.org/plugins/view.php?plugin=editor_contenteditable

      Note: this editor does not use any cache - it just seems to be triggered by the plugin installation.

      The problem is in the file cachestore - it creates directories based on the first 3 chars of the key - which could be any chars. If this happens to match a reserved name on windows - it gives the described fatal error.

            damyon Damyon Wiese
            damyon Damyon Wiese
            Dan Poltawski Dan Poltawski
            Sam Hemelryk Sam Hemelryk
            Michael de Raadt Michael de Raadt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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