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

mimeinfo does not accept full URLs leading to wrong detection in mediaplugin filter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.2, 2.2
    • Fix Version/s: 2.0.6, 2.1.3
    • Component/s: Filters
    • Labels:
    • Environment:
      LAMP
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      1/ upload several flv test files to some server (one of them should ahve space = "%20" in the file name)
      2/ install wireshard for packet inspection
      3/ enable mediafilter
      4/ create a page resource with links to those files with extra bogus ? and # parts
      5/ create url resources linking to these sample flvs with random query parts
      6/ make sure all videos play correctly
      6/ use wireshark to verify the flow player sends expected http query (remember to reset browser caches)

      Show
      1/ upload several flv test files to some server (one of them should ahve space = "%20" in the file name) 2/ install wireshard for packet inspection 3/ enable mediafilter 4/ create a page resource with links to those files with extra bogus ? and # parts 5/ create url resources linking to these sample flvs with random query parts 6/ make sure all videos play correctly 6/ use wireshark to verify the flow player sends expected http query (remember to reset browser caches)
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w46_MDL-30303_m22_mimeinfo

      Description

      When using resources in combination with filter media plugin, under certain circumstances full URLs are not managed correctly, thus media are not played.

      For example, an URL such as:

      http://mystorage.tld/folder/myflvvideo.flv?test=one.flv

      is correctly detected and video is played.

      However, when using more complex full URLs, (as authenticated URLs from services like Amazon S3), such as:

      http://mystorage.tld/folder/myflvvideo.flv?AWSAccessKeyId=user111&Expires=1321449255&Signature=0DBvJ0ZG%2BJp3XP%2Ff6S%2FyY0JTUfw%3D

      The player does not manage the URL correctly and media is not played.

      According to tests the mimeinfo(MoreComplexURL) returns document/unknown, so processing stops.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

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