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

ID numbers included in image pathing is explicit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.3
    • Fix Version/s: 1.9.5
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      When including an image in an HTML entry for a course, after choosing the image through the file picker the image is pathed through file.php and then the id number in the path as well. For example: http://172.16.0.11/moodle-dev/file.php/4/Barista_course_header_moodle_grey.jpg

      When this course is backed up and restored as a new course, the id number encoded above (4 in this case) remains static. The image link is broken.

      Martin has indicated that this shouldn't happen and is a bug.

      I think this gets more interesting though, as if the image exists in that course id, even though the new course has a new id (so in other words the new course has been restored into the same Moodle environment) then the image will work as it can access it from the original course. This changes however if the environments are different and courseid 4 does not contain the image required. Also, I'm not sure if access/enrollment is needed to the other course for the cross-course inclusion to occur - the image may fail if you don't have access to that course.

      This Moodle forum topic explains the issue: http://moodle.org/mod/forum/discuss.php?d=116190

        Attachments

          Activity

            People

            • Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              eblschris Chris Keen
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/May/09