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

Restored course has broken links in assignment description when viewed from calendar event

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a new assignment with a due date (it must be created with the right description in one step!)
        • In the description of the assignment add a local picture (upload, private files, ...)
      2. Confirm that the assignment description has the correct picture
      3. Go to the calendar and confirm that the due date event does not contain the picture (check the HTML, sometimes a missing pictures is hard to spot)
      4. Now update the assignment description
      5. Place one more image in the description
      6. Save and confirm that the due date calendar event does not contain the picture (check the HTML, sometimes a missing pictures is hard to spot)
      Show
      Create a new assignment with a due date (it must be created with the right description in one step!) In the description of the assignment add a local picture (upload, private files, ...) Confirm that the assignment description has the correct picture Go to the calendar and confirm that the due date event does not contain the picture (check the HTML, sometimes a missing pictures is hard to spot) Now update the assignment description Place one more image in the description Save and confirm that the due date calendar event does not contain the picture (check the HTML, sometimes a missing pictures is hard to spot)
    • Workaround:
      Hide

      Access the file from the Assignment module page rather than from the Calendar.

      Show
      Access the file from the Assignment module page rather than from the Calendar.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-42995-master-3rd
    • Story Points:
      8
    • Sprint:
      FRONTEND Sprint 7

      Description

      When an assignment description contains an embedded file or a link to a file and that assignment appears in the Calendar block (because it has a due date), the embedded file or link to a file breaks when that course is backed up and restored to a new course.

      Steps to reproduce:

      1. Create a course.
      2. Add an assignment, add a file (e.g., an image) to the description or create a link in the description to an existing resource (e.g., PDF document), and set a due date for the assignment.
      3. Add the Calendar block to the course.
      4. Backup the course and restore it elsewhere on the site (be sure to include user data).
      5. Enroll a user into the restored-to course.
      6. As the enrolled user, load the assignment in the restored course. The embedded file or the link work.
      7. Still as the enrolled user, go back to the course page and use the Calendar block to click on the due date and then the assignment link.
      8. The embedded image or the link in the assignment description here is broken.

      Expected result: The files in the description should not be broken. Since the assignment description on the assignment page is correct, the calendar page should also be correct.

      Actual result: The assignment page is correct but the calendar page has broken links.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Jan/14