Lumieducation / Lumi

Lumi is a Desktop App that offers a collection of tools to create, edit and share digital content with your class.
http://Lumi.education
GNU Affero General Public License v3.0
114 stars 23 forks source link

Impossible to paste a Course Presentation because of clipboard version (1.22) lower than environment (1.25) #2632

Open pamodeo-icb opened 11 months ago

pamodeo-icb commented 11 months ago

Describe the bug After opening and copying a "Course Presentation" produced with a previous version of the libraries, paste is not allowed. Saving the file and reopening does not solve the problem.

Environment (please complete the following information):

To Reproduce Steps to reproduce the behavior:

  1. Open a file containing a Course Presentation" produced with a previous version of Lumi (probably 0.9.4) and libraries
  2. Click on 'copy'
  3. Try to paste (in the same or in another h5p file, even a newly created empty file)
  4. "Paste" button is inactive and hovering on it with the pointer produce this message: "The content in the H5P clipboard is of a lower version (1.22) than what it is supported in this context (1.25), if it is possible, try to have the content you want to paste upgraded, copy it again and try pasting it here".

Saving the file within the new version of Lumi and with the last version of all libraries loaded does not fix the issue.

Expected behavior The Course Presentation should be pasted in the same or in another file.

Screenshots No meaningful screenshot is available.

Additional context The related libs currently listed in the Settings/Libraries section of Lumi are: Course Presentation 1.24.14 Course Presentation 1.25.9 Course Presentation Editor 1.22.4 Course Presentation Editor 1.24.5 Course Presentation Editor 1.25.4 Neither of them can be removed

The Course Presentation file can be played, edited and saved under Lumi 0.10.0.0, but the problem still persists when trying to copy and paste the new file. Cheating by editing the h5p.json embedded into the h5p file of the Course Presentation and replacing subversion 22 with 25 produces a file that can be copied and pasted, but is only partly functional, since, e,g., the "Drag the word" or "Fill the blank" contents are not visible, nor functional, and they cannot be edited.