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

Folder: Inconsistent handling of (sub)folder names beginning in or ending with a dot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • 2.1
    • Files API, Resource
    • MOODLE_21_STABLE
    • Hide

      Avoid folder names that contain dots.

      Show
      Avoid folder names that contain dots.

      In the edit screen for the "Folder" resource, in the "Content" section, it is possible to rename a (sub)folder to have a name that begins with, or ends in, a dot (.). However, when changing to this subfolder afterwards, the folder appears empty. See test instructions for details.

      Note that this problem appears for folder names like "test." and ".test" but not for "test.test" .

      Replication instructions:

      • Go to a Moodle course page, and turn editing on.
      • Click "Add a resource... Folder".
      • Go to the "content" section, click "Create Folder", type the name: "test", then click "OK".
      • Click on the folder name "test", and add a file to this folder.
      • Return to the main directory (click "Files").
      • Right-click on the "test" folder and choose "Rename".
      • As the new name, type "test." (note trailing dot), then click "OK".
      • Click on the folder "test." to open it.

      EXPECTED BEHAVIOUR: Title lines says "Path: Files > test.", contents of the folder are being displayed.
      ACTUAL BEHAVIOUR: Title line says "Path: Files > test", folder appears empty ("No files attached").

            fred Frédéric Massart
            bostelm Henning Bostelmann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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