Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.8.6, 2.9.5, 3.0.3, 3.6.4, 3.7, 3.8
-
MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MDL-51327-master -
Description
Issue: When you upload an zip file into the Embedded Files section of a Topic, and unzip it, and link to those unzipped files, they dissappear after "Save Changes" is clicked in the topic.
Steps to replicate:
{.... has been put in place in parts of the URL to not identify direct sites and content}Prequisite:
-Have Embedded files turned on such that the Embedded Files (Manage Files) icon shows in the Text Editor
-Have a zip file that expands to a director and contains a directory structure.
-Ensure the Atto Editor is being used as the text editor
-Create a Course
-Go to Topic 1,2,3... (just not 0) and Edit it
-Click on Embedded Files/Manage Files icon in the text editor
-Upload the zip file
-Click the file just uploaded
-Click the Unzip Button (may take a few minutes)
--Navigate into the folder to verify files expanded as it should.
-Close Manage Files popup
-Click the Link icon to create a Link
-Click Browse Repositories
-Select Embedded Files (You should see what you saw in the Manage Files pop-up)
-Navigate to the File you want to link with in the expanded folder
-Click "Select This File"
-Link gets created (Example: http://...../draftfile.php/15/user/draft/781419109/.../index.html)
-Click "Save Changes" (You will see a popup from Chrome asking if you are sure you want to navigate away from this page, like there are unsaved changes, thought you just clicked save)
-The link will be created on the course page
-Click the Link (Which now changed in the Example to this: http://..../pluginfile.php/4339/course/section/1710/.../index.html)
-ERROR! (see below)
-Go back to Edit the topic
-Click the Manage Files icon
-Only the Zip file uploaded remains.
-You are also given the following warning that the file you linked does not exist anymore:
"Warning! The following files that are referenced in the text area appear to be missing:
..../index.html"
____________
Error Message:
Sorry, the requested file could not be found
More information about this error
Debug info:
Error code: filenotfound
Stack trace:
line 463 of /lib/setuplib.php: moodle_exception thrown
line 1964 of /lib/filelib.php: call to print_error()
line 4382 of /lib/filelib.php: call to send_file_not_found()
line 37 of /pluginfile.php: call to file_pluginfile()