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

Broken relative paths for images during course restore. The bug occurs when images are PASTED, rather than INSERTED.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      When you INSERT an image into any HTML resource, the src= argument is an ABSOLUTE path.
      HOWEVER, when you PASTE an image into any html resource, the src= argument is a RELATIVE path.
      When you backup the course - and then restore - all relative paths gets broken, hence no images are displayed.

      The fix will involve looking at the paste code, comparing it to the insert code, and then making the paste code match the insert code.
      This should narrow down any time to fix the bug considerably.

      This bug has a workaround for users who are HTML programmers - changing the src attribute value from a relative path to an absolute path.

      For non-programmers (the majority of teachers), however, this represents a major loss of function since they will be hard pressed to correlate the bug with the copy/paste operation.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: