[Building Sakai] How to convert Binary File content to file System?

Tony Mendoza Rosa tony_mendoza at mac.com
Sun Apr 5 09:23:35 PDT 2009


Hi,

Server: XServer Dual G5 (PPC)
OS: Mac OS X 10.5.6
Sakai version:  Sakai 2.5.3
My SQL version:  5.0.67

I tried to convert all Binary content (files) uploaded into Sakai from Database to the filesystem, but I got lots of error. After the conversion I can't access files attached to the OSP Matrix, and the Student's files on Resources area. The Site is working normally since I restored the sakai.properties file with the original file.

Sample of Error found in catalina.out file:

07:08:28,946 WARN DbContentService.java:2600 DbContentService:2600 - convertToFile: null xml : /user/6a38c183-b8ae-4230-bc58-7e964e3fc0f5/portfolio-interaction/fdfb4c6e-64f5-4ea1-ac16-e1cb99109263/950846123FD9BF2B8D150029FEE5382F/E8774E9BA55FD215A8439123286DD317/64E2579CF119FAB7813A98AFD9357778

I added the following statements on Sakai Properties file to convert all files uploaded:

bodyPath at org.sakaiproject.content.api.ContentHostingService=opt/sakai_archive
bodyVolumes at org.sakaiproject.content.api.ContentHostingService=sakai_volume
convertToFile at org.sakaiproject.content.api.ContentHostingService=true

Once I made the changes, I restarted the Web Application. I can upload any file to the Resource Area, which is stored on the volume sakai_volume (in the directory opt/sakai_archive), but I can't access any file uploaded or attached previously to the Matrix.

How can I convert Binary File content to file System without loosing the files previously uploaded?

Regards,

Tony Mendoza-Rosa
University of Puerto Rico
Rio Piedras Campus




More information about the sakai-dev mailing list