Course Presentation - Downloads with Drop and Drag (the one that allows media to be uploaded)

febster's picture

Hi there!

I've ran into an interesting bug for H5P on WP.

If you create a course presentation that contains a drop and drag element (the ones you can upload pictures and create target drag areas), and then download it...and then later attempt to re-upload to H5P running the 12-06-2016 release, the .h5p file will not re-upload and is rendered corrupted.

I have h5p running on two different sites, it uploaded fine with the drag and drop in the course presentation on the H5p version released on 11-23-2016, but something changed with the 12-06-2016 update. 

For some reason, if you create a course presentation with contains a drop and drag, download it, then later try to re-upload...it gets destroyed by the mere fact that once you had a drop and drag contained in the file. Even if you go back to the initial file you tried to download, delete the drop and drag element, then download again, then try to re-upload without any drop and drag now existing...the problem still persists. The file is absolutely corrupted.

Don't know if anyone knows of this issue, but would encourage anyone to create a simple course presentation, add a drop and drag, then see if you can download, then re-upload on WP. I have tried on two different sites on two different servers and got the same result on WP.

Hope this helps!

Timothy

febster's picture

Here's the corrupted file.

tim's picture

Hi Timothy, thanks for the extremely detailed write up :) 

Just to clarify, these are the steps taken to reproduce the bug:

  1. Create a course presentation (with a drag and drop question) on the 11-23-2016 version of H5P on wordpress
  2. Download the course presentation
  3. Upload the course presentation to the 12-06-2016 version

Would you also be able to attach the uncorrupted file to this thread?

Cheers

febster's picture

Here's what I mean:

  1. Create a course presentation (with a drag and drop question) on the 11-23-2016 OR 12.-06-2016 version of H5P on wordpress
  2. Download the course presentation
  3. RE-Upload the course presentation to the 12-06-2016 version
  4. You'll see the file will not upload to 12-06-2016. You cannot upload it to 11-23-2016, either. File is corrupted. After creating a drop and drag, then deleting the drop and drag, the file remains corrupted. One drop and drag prevents any and all future uploads.

Basically, due to limited copy and pasting currently in H5P, I've created course presentation templates for myself, which I was downloading then re-uploading. Some of these had the drop and drag element, which I systematically determined was the only different if files uploading and not uploading. Still could be wrong about this, but I pretty sure I narrowed down on this issue. Just wondering if anyone else can repeat this.

Cheers,

Timothy

febster's picture

Here's the uncorrecupted file...Basically it's what I want, minus the inclusion of the drop and drag element.

tim's picture

Hi Timothy, both the corrupted and uncorrupted files can be uploaded on my local wordpress. 

Would you be able to try it maybe with a fresh WP install? That's what I did and it seemed to work. 

febster's picture

Yes, it seems to work now. Very curious. Thank you much for the tip! Hopefully, smooth sailing from here on out!

tim's picture

Yep, seems little strange. Write in if you have any other problems!