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

File store cache creates directories using reserved names on windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.4.5, 2.5.1
    • Fix Version/s: 2.4.6, 2.5.2
    • Component/s: Caching
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            damyon Damyon Wiese
            Reporter:
            damyon Damyon Wiese
            Peer reviewer:
            Dan Poltawski
            Integrator:
            Sam Hemelryk
            Tester:
            Michael de Raadt
            Participants:
            Component watchers:
            Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Sep/13