Page 1 of 1

Document Preview Broken Since Latest Patch

Posted: Wed Jul 22, 2015 5:17 pm
by die7fox
We recently installed the most recent update patch for LogicalDOC 7.2.1. The installation appears to have broken the Document Preview for Microsoft Office documents. Any new Word or Excel documents that are uploaded, or any such documents that are checked out and checked in again, cannot be previewed. Any documents that were in the system prior to the update and have NOT been modified can still be previewed. We are running the Linux version of LogicalDOC, so documents are previewed using OpenOffice.

Re: Document Preview Broken Since Latest Patch

Posted: Fri Jul 24, 2015 2:11 pm
by agaspa
What is the number of the update package you have installed?
On the login page which is the version number of LogicalDOC?

Re: Document Preview Broken Since Latest Patch

Posted: Fri Jul 24, 2015 2:21 pm
by die7fox
LogicalDOC Enterprise 7.2.1. The installed patch was released last month, I believe. One of the enhancements was that new folders would automatically inherit permissions from their parents. That is working, so the patch installation appeared to be successful.

Here is the text of update.log:

Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64/lib/tools.jar
Buildfile: /LogicalDOC/bin/build.xml

update:
[echo] Update started

init:

tomcat-stop:
[exec] Tomcat stopped.
[echo] stopped
[mkdir] Created dir: /LogicalDOC/updates/tmp
[echo] Process update package /LogicalDOC/updates/ldoc_upd-00000044.zip
[unzip] Expanding: /LogicalDOC/updates/ldoc_upd-00000044.zip into /LogicalDOC/updates/tmp
[echo] Execute update package /LogicalDOC/updates/ldoc_upd-00000044.zip

update:

cleanup:
[echo] Cleaning up your system
[delete] Deleting directory /LogicalDOC/tomcat/work/Catalina
[echo] System cleaned

update-application:
[echo] Updating the application
[delete] Deleting directory /LogicalDOC/tomcat/webapps/ROOT
[unzip] Expanding: /LogicalDOC/updates/tmp/logicaldoc-enterprise-webapp-7.2.1.war into /LogicalDOC/tomcat/webapps/ROOT
[delete] Deleting: /LogicalDOC/tomcat/webapps/ROOT/WEB-INF/classes/license.lic
[delete] Deleting: /LogicalDOC/tomcat/webapps/ROOT/WEB-INF/classes/context.properties
[delete] Deleting: /LogicalDOC/tomcat/webapps/ROOT/WEB-INF/classes/log.xml
[delete] Deleting: /LogicalDOC/tomcat/webapps/ROOT/WEB-INF/classes/log4j.dtd
[echo] The application was updated

update-configuration:
[echo] Updating the configuration
[copy] Copying 1 file to /LogicalDOC/conf
[propertyfile] Updating property file: /LogicalDOC/conf/context.properties
[sql] Executing commands
[sql] 1 of 1 SQL statements executed successfully
[echo] The configuration was updated

update-registry:

update-database:
[echo] Updating the database
[echo] Executing sql file sql/upgrade.sql.mysql
[sql] Executing resource: /LogicalDOC/updates/tmp/sql/upgrade.sql.mysql
[sql] 79 of 79 SQL statements executed successfully
[echo] The database was updated
[echo] Remember to COMPLETELY delete your browser's cache
[move] Moving 1 file to /LogicalDOC/updates
[delete] Deleting directory /LogicalDOC/updates/tmp

init:

tomcat-start:
[exec] Tomcat started.
[echo] started
[echo] Update finished

BUILD SUCCESSFUL
Total time: 3 minutes 36 seconds

Re: Document Preview Broken Since Latest Patch

Posted: Fri Jul 24, 2015 2:49 pm
by agaspa
Hi die7fox,
you should try to change the value of filed parameter office.convert.enabled to: false

The property is available in the Parameters, below the path:
Administration -> Settings -> Parameters

After saving using the buttom on the bottom, try to load a new document and to request its preview

Re: Document Preview Broken Since Latest Patch

Posted: Fri Jul 24, 2015 2:54 pm
by die7fox
Thank you. Unfortunately, that did not work. The preview still will not render. In many cases, the thumbnail image of the document does not appear, either.

Re: Document Preview Broken Since Latest Patch

Posted: Fri Jul 24, 2015 5:19 pm
by agaspa