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

Error exception in content bank when an H5P file doesn't exist

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_311_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_311_STABLE
    • Pull from Repository:
    • Pull 3.11 Branch:
      MDL-72358-311
    • Pull Master Branch:
      MDL-72358-master
    • Testing Instructions:
      Hide
      1. Login as admin.
      2. Go to the content bank.
      3. Upload the files attached to the issue (accordion.5hp and arithmetic-quiz.h5p).
      4. Run the following SQL query: 

        DELETE FROM mdl_files
         WHERE component = 'contentbank' AND filearea = 'public' AND filename = 'accordion.h5p'

      5. Reload the Content bank page.
      6. Check there is no error displayed.
      7. Check that only "arithmetic-quiz.h5p" is displayed.

       

      Show
      Login as admin. Go to the content bank. Upload the files attached to the issue (accordion.5hp and arithmetic-quiz.h5p). Run the following SQL query:  DELETE FROM mdl_files WHERE component = 'contentbank' AND filearea = 'public' AND filename = 'accordion.h5p' Reload the Content bank page. Check there is no error displayed. Check that only "arithmetic-quiz.h5p" is displayed.  
    • Sprint:
      Moppies Kanban

      Description

      An issue has been raised in MoodleCloud related to the content bank: MC-4062

      In some cases, loading the content bank, from a course page, gives an "Invalid H5P content URL", not offering any way to delete the offending content or create new one.

       

        Attachments

        1. accordion.h5p
          530 kB
        2. arithmetic-quiz.h5p
          731 kB
        3. MDL-72358_master.png
          MDL-72358_master.png
          33 kB
        4. MDL-72358_v3.11.png
          MDL-72358_v3.11.png
          33 kB

          Issue Links

            Activity

              People

              Assignee:
              sarjona Sara Arjona (@sarjona)
              Reporter:
              sarjona Sara Arjona (@sarjona)
              Peer reviewer:
              Carlos Escobedo Carlos Escobedo
              Integrator:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Tester:
              Angelia Dela Cruz Angelia Dela Cruz
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Sep/21

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h