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

problem viewing files located in sub folders within Amazon S3

XMLWordPrintable

    • MySQL
    • MOODLE_20_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • MOODLE_22_STABLE, MOODLE_23_STABLE
    • MDL-25953-master
    • Hide

      Test pre-requisite

      • An Amazon S3 repository available for testing
      • 2 Buckets, each one containing folders, sub folders and files
      • Bucket names should contain capital letters
      • Some files and folders should contain Unicode characters, spaces, etc...

      Test steps

      1. Enable your Amazon S3 repository
      2. Go to your private files
      3. Make sure you can freely browse the Amazon Repository
      4. Add several files and make sure they've properly been added
      5. Save your private files
      6. Visit your private files, click on each new file, download them, and make sure the content is correct
      Show
      Test pre-requisite An Amazon S3 repository available for testing 2 Buckets, each one containing folders, sub folders and files Bucket names should contain capital letters Some files and folders should contain Unicode characters, spaces, etc... Test steps Enable your Amazon S3 repository Go to your private files Make sure you can freely browse the Amazon Repository Add several files and make sure they've properly been added Save your private files Visit your private files, click on each new file, download them, and make sure the content is correct

      When using Amazon S3 you can add files using "add a resource/file" and select them from Amazon S3 (assuming you have setup the Amazon S3 repository with a secret key and access password), however anything selected which is in a subfolder within the bucket doesn't display, while files in the root of the Amazon bucket display fine. It appears that moodle is merging the foldername in with the file name and combining them into a single file name that it then looks for and can't find.

      For example "file.pdf" stored in a bucket called "folder" is appearing in moodle as "folderfile.pdf". If the same file is put into the root of the bucket it appears in moodle as simply "file.pdf" and displays fine.

      We tested this with both pdf and .m4v files on two separate installations of Moodle and in both cases those in the root of the bucket displayed fine while those in a subfolder didn't.

            fred Frédéric Massart
            andygar Andy Gardiner
            Rajesh Taneja Rajesh Taneja
            Dan Poltawski Dan Poltawski
            Ankit Agarwal Ankit Agarwal
            Votes:
            4 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.