Oracle OpenOffice plugin and LibreOffice

So, i would like to release a quick fix for the updated OpenOffice plugin by Oracle (previously Sun Connector for Alfresco CMS)…

First, let see the error in log:

10:51:23,318 User:admin ERROR [freemarker.runtime] Expression path is undefined on line 53, column 61 in org/alfresco/office/navigation.get.xml.ftl.

Expression path is undefined on line 53, column 61 in org/alfresco/office/navigation.get.xml.ftl.
The problematic instruction:
----------
==> ${path?url} [on line 53, column 59 in org/alfresco/office/navigation.get.xml.ftl]
----------

Error occured by an unhandled and missing ‘path’ variable in freemarker template. Put following code before ‘notication’ XML tag (you can replace initial value of ‘path’ variable with something else of course):

<#if path??>
<#else>
<#assign path="/">
</#if>

Another quick tip for Alfresco-side installation, just use repository instead of local filesystem to override (no need to overwrite) ‘office’ webscript templates in deployed Alfresco:

And finally, the plugin works with LibreOffice 3.3 too:

Alfresco 3.4 flash preview fix

Just a quick fix to WebPreview issue by Alfresco 3.4.c Community edition on Linux…

Missing flash preview of contents occured by an invalid symbolic link in “/opt/alfresco-3.4.c/common/lib/” folder. You can test it with manual start of “pdf2swf” command:

root@ubuntu:/opt/alfresco-3.4.c/common/bin# ./pdf2swf
/opt/alfresco-3.4.c/common/bin/.pdf2swf.bin: error while loading shared libraries: /opt/alfresco-3.4.c/common/lib/libstdc++.so.5: file too short

The fix is really simple, create a new symlink:

root@ubuntu:/opt/alfresco-3.4.c/common/lib# mv libstdc++.so.5 libstdc++.so.5.bad

root@ubuntu:/opt/alfresco-3.4.c/common/lib# ln -s libstdc++.so.5.0.3 libstdc++.so.5

root@ubuntu:/opt/alfresco-3.4.c/common/bin# ./pdf2swf
Usage: /opt/alfresco-3.4.c/common/bin/.pdf2swf.bin [-options] file.pdf -o file.swf
...

Alfresco WebPreview fix

Update: installer bug already exists on 3.4d release…