-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.10, 4.3.3
If H5P core activity has spaces in file name the "Edit H5P content" link button does not work but causes person editing the file to end up in page with message: "The given URL is incorrect or you cannot edit this file. More information about this error"
Testing instructions
1. Create new H5P activity to a course (core version of H5P)
2. Go to Access the H5P file in the content bank (< if you have no existing h5p content, if you do, skip to point 6 of this list).
3. Create simple H5P content, e.g. Course presentation, actual content of the H5P does not matter.
4. Save your new H5P content so it's in the content bank.
5. Go back to setting page of H5P activity you were creating
6. Choose the previously created H5P file in File picker > Content bank
7. When selecting file, make sure that Save as input field has file name with spaces instead of lines. E.g. if default name for the file is course-presentation-1.h5p change that to >>> course presentation.h5p (with empty spaces instead of - lines). Then press Select this file button to select the file.
8. You are back at the Updating: H5P view. Press Save and display and go to preview your selected H5P
9. When in page where you are looking your H5P in preview mode, at bottom of the page is link Edit H5P content. Pressing that gives you new page with a message "The given URL is incorrect or you cannot edit this file".
If you go back to the editor and edit the H5P filename and remove empty spaces (or replace them e.g. with - or _ or such symbol) and save the changes everything works if you go back to steps 8 and 9.
If you embed the same H5P e.g. via text editor to a course page and it has Edit H5P content link visible, that works too. But if you go inside the H5P activity and try to use the Edit H5P content link you are back to "The given URL is incorrect..." error page.