[Building Sakai] How to convert the content hosting resour ce from db to filesystem ?

zmk zmk at tju.edu.cn
Thu May 2 16:56:08 PDT 2013


Thank you very much!!!
I have solved the problem by using this patch:
Index: src/main/java/org/sakaiproject/content/impl/DbContentService.java===================================================================--- src/main/java/org/sakaiproject/content/impl/DbContentService.java (reviso 236)+++ src/main/java/org/sakaiproject/content/impl/DbContentService.java (cópia de trabalho)@@ -2724,12 +2724,10 @@                      try                     {-                        Object clob = result.getObject(3);-                        if(clob != null && clob instanceof byte[])-                        {-                            edit = new BaseResourceEdit();-                            resourceSerializer.parse(edit, (byte[]) clob);-                        }+                     Blob clob = result.getBlob(3);+                     edit = new BaseResourceEdit();+                     resourceSerializer.parse(edit, clob.getBytes(1L, (int) clob.length()));+                     }
---------- Origin message ----------
>From:"Sam Ottenhoff" <ottenhoff at longsight.com>
>To:"Paul Dagnall" <pdagnall1 at udayton.edu>
>Subject:Re: [Building Sakai] How to convert the content hosting resource from db to filesystem ?
>Date:2013-05-03 00:55:31

It sounds a lot like this JIRA:

https://jira.sakaiproject.org/browse/KNL-164


On Thu, May 2, 2013 at 12:51 PM, Paul Dagnall <pdagnall1 at udayton.edu> wrote:

> Yes. I had the same problem. I had to change the code in
> DbContentService.java in the kernel to allow for blob data types in additon
> to clob, and then it worked for me. It was a very small code change. I can
> send you a patch if you're interested.
>
> Paul Dagnall
> Application Developer & Administrator
> University of Dayton
>
>
> On Thu, May 2, 2013 at 12:44 PM, zmk <zmk at tju.edu.cn> wrote:
>
>> Hello everybody,
>>
>> I use Oralce11g to be my database. I use this method to solve this
>> problem:
>>
>> convertToFile at org.sakaiproject.content.api.ContentHostingService = true
>> (add it to sakai.properties )
>>
>> But it didn't work, just a few files were added to my filesystem. Has
>> anybody met this problem? By the way, my sakai version is 2.9.1.
>>
>> Thanks.
>>
>>
>> M.K.Zhao
>> TianJin University,China
>> zmk at tju.edu.cn
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to
>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>> "unsubscribe"
>>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130503/5abd19d1/attachment.html 


More information about the sakai-dev mailing list