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

Repository Filter performs case sensitive search on file extensions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.5, 2.1.2, 2.2
    • Fix Version/s: 2.0.6, 2.1.3
    • Component/s: Repositories
    • Labels:
    • Environment:
      Debian Squeeze
    • Database:
      Any
    • Testing Instructions:
      Hide

      Requirements

      On your local filesystem, create two files:

      • lowercase.mp3
      • uppercase.MP3

      These don't need to have any content. I used touch to create two empty files.

      Instructions

      • Navigate to My Profile -> My private files
      • Click 'Manage my private files'
      • Select 'Add' and upload both of your prepared files
      • Navigate to a course and turn on editing mode
      • Add a new page
      • In the Description, use the 'Moodle Media' button to insert some media
      • Select 'Find or upload a sound, video or applet...'
      • Choose 'Private files'

      Expected result

      Both uppercase.MP3 and lowercase.mp3 are listed

      Actual result

      Only lowercase.mp3 is listed

      Show
      Requirements On your local filesystem, create two files: lowercase.mp3 uppercase.MP3 These don't need to have any content. I used touch to create two empty files. Instructions Navigate to My Profile -> My private files Click 'Manage my private files' Select 'Add' and upload both of your prepared files Navigate to a course and turn on editing mode Add a new page In the Description, use the 'Moodle Media' button to insert some media Select 'Find or upload a sound, video or applet...' Choose 'Private files' Expected result Both uppercase.MP3 and lowercase.mp3 are listed Actual result Only lowercase.mp3 is listed
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-30165-master-1

      Description

      When using a repository plugin which restricts based on the supported_filetypes() function and uses the repository->filter() function, the filter function uses a case sensitive regular expression to check the file extension type.

      E.g. example.mp3 is shown; example.MP3 is not.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    28/Nov/11