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

Embedded media are broken for 'Login as' functionality

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.6, 3.6.4, 3.7
    • Fix Version/s: None
    • Component/s: Media
    • Labels:
    • Testing Instructions:
      Hide
      1. create a course
      2. edit any section (not course description) and insert youtube video - insert smth like 

        <p style="text-align: center;"><iframe width="800" height="450" src="https://www.youtube.com/embed/qE8Z8VnLepY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" enablejsapi="1" id="widget2"></iframe></p>
        <p> Text is shown </p>
        

      1. Make sure video is displayed and plays as expected for admin
      2. Login as any student in that course using 'Login as' feature. Go to course page
      3. Video is NOT showing at all
      Show
      create a course edit any section (not course description) and insert youtube video - insert smth like  <p style= "text-align: center;" ><iframe width= "800" height= "450" src= "https://www.youtube.com/embed/qE8Z8VnLepY" frameborder= "0" allow= "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen= "" enablejsapi= "1" id= "widget2" ></iframe></p> <p> Text is shown </p> Make sure video is displayed and plays as expected for admin Login as any student in that course using 'Login as' feature. Go to course page Video is NOT showing at all
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE

      Description

      After recent security patch https://tracker.moodle.org/browse/MDL-63786 certain functions are not behaving as they used to. For example embedded video is not showing when using 'Login As' feature

        Attachments

        1. 1 student view modal buttons.png
          1 student view modal buttons.png
          62 kB
        2. 2 log in as view modal buttons.png
          2 log in as view modal buttons.png
          63 kB
        3. 3 admin view google slide.png
          3 admin view google slide.png
          213 kB
        4. 4 log in as view google slidew.png
          4 log in as view google slidew.png
          35 kB
        5. MDL-65813.png
          MDL-65813.png
          652 kB
        6. Workspace 1_035.png
          Workspace 1_035.png
          814 kB

          Issue Links

            Activity

              People

              • Votes:
                14 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated: