Project

General

Profile

Bug #3934

Medias copied when duplicate a part of a course doesn't appear in the Chamilo document interface

Added by Hubert Borderiou almost 8 years ago. Updated over 7 years ago.

Status:
Bug resolved
Priority:
Urgent
Category:
-
Target version:
Start date:
27/09/2011
Due date:
% Done:

80%

Estimated time:
Spent time:
Complexity:
Difficult
SCRUM pts - complexity:
20

Description

Hi,
I've got a course COURSE1, an HTML document mydoc.html in this course with a embeded flv file cuepoint.flv in it.
In the HTML source, link to the flv file is "courses/COURSE1/document/video/flv/cuepoints.flv"

I go in Backup > Copy course > Let me select learning objects
and I copy my HTML file mydoc.html to another course COPYCOURSE

I go in the course COPYCOURSE and I can find my doc mydoc.html in it, and the flv file has been copied on the HDD of the server in "courses/COPYCOURSE/document/video/flv/cuepoints.flv", but the file doesn't appear on the Chamilo document interface on the course COPYCOURSE (it has not been added in the bdd document and item_property tables for the COPYCOURSE course)


Files

2011-10-07_1013.swf (5.37 MB) 2011-10-07_1013.swf Hubert Borderiou, 07/10/2011 10:19
2011-10-07_1027.swf (2.45 MB) 2011-10-07_1027.swf Hubert Borderiou, 07/10/2011 10:29

Associated revisions

Revision 1414f072 (diff)
Added by Julio Montoya over 7 years ago

Adding missing FLV folder when creating a new course see #3934

Revision b0e4ca1d (diff)
Added by Julio Montoya over 7 years ago

Should fix bug when copy course files to another course see #3934

History

#1

Updated by Julio Montoya almost 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Julio Montoya

I could reproduced the error, i will check this bug

#2

Updated by Julio Montoya almost 8 years ago

I don't know why this happens in fact you should not be able to copy the flv file, you should do it manually ...
because when you try the same thing with images it would't work

#3

Updated by Julio Montoya almost 8 years ago

  • Status changed from Assigned to New
  • Assignee deleted (Julio Montoya)
#4

Updated by Yannick Warnier almost 8 years ago

  • Status changed from New to Needs more info
  • Assignee set to Hubert Borderiou

Hubert, did the file .flv appear in your database before the copy? Did you select "all documents" to copy or just the HTML?

#5

Updated by Hubert Borderiou almost 8 years ago

Hi,
it's going to be easier to show you that I've done with a screecast, see attached.

(the image is copied too in my COPY course, see 3933, which is a important request for me, but it didn't impact this request)

#6

Updated by Hubert Borderiou almost 8 years ago

There is a other effect of this :

I've finished my test, and in my course COURS00001 my flv folder disapeared from the document table in the BDD.

See the second screencast, I did the test twice, because I was quite surprise.

#7

Updated by Yannick Warnier over 7 years ago

  • Target version set to 1.9 Beta
#8

Updated by Yannick Warnier over 7 years ago

  • Status changed from Needs more info to Assigned
  • Assignee changed from Hubert Borderiou to Julio Montoya
  • Priority changed from Normal to Urgent
  • Complexity changed from Normal to Difficult
  • SCRUM pts - complexity changed from ? to 20

Checking the screencast really helps seeing the problem. Julio, I leave it to you.

#9

Updated by Julio Montoya over 7 years ago

i'm going to check this one

#10

Updated by Julio Montoya over 7 years ago

I just upload a file using fckeditor in the video/flv/myvideo.flv path
and the video/flv path doesn't exist in the database, that's why everything fails

#11

Updated by Julio Montoya over 7 years ago

  • Status changed from Assigned to Needs more info
  • Assignee changed from Julio Montoya to Yannick Warnier
  • % Done changed from 0 to 80

The problem was that when migrating HTML files to another course the script parse for images, videos and copy the file to the course, the addition to the database (document, item_property) was missing. Should work now with the recent changes ...

need feedback

The function modified was:

DocumentManager::replace_urls_inside_content_html_from_copy_course();

#12

Updated by Yannick Warnier over 7 years ago

  • Assignee changed from Yannick Warnier to Hubert Borderiou

Hubert, I'm assigning the review of this one to you. Please review quickly (only 11 tasks before beta)

#13

Updated by Yannick Warnier over 7 years ago

Hubert, we just need a little check heeeeeeeere

#14

Updated by Hubert Borderiou over 7 years ago

  • Status changed from Needs more info to Bug resolved

tested and approuved
(both problems)

Also available in: Atom PDF