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

Repository Filter performs case sensitive search on file extensions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.0.6, 2.1.3
    • 2.0.5, 2.1.2, 2.2
    • Repositories
    • Debian Squeeze
    • Any
    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • MDL-30165-master-1
    • 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

      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.

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Dan Poltawski Dan Poltawski
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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