AnsweredAssumed Answered

Problem with document previewer for documents with long file names (Alfresco running on Windows)

Question asked by aabd on May 8, 2015
Latest reply on Aug 5, 2017 by piercerob
Hi,

We're currently running Alfresco Community 5.0d on Windows Server 2008 R2. When a user clicks on a Word document in Alfresco, the document previewer does not work. It displays the error "Cannot load PDF content". Everything else works, including downloading the document and editing it.

We've narrowed the cause of the problem down to documents with long names. For example, when we try to preview the document with a short name (name: "Test Document.docx"), the previewer works. But when we try to preview a document with a long name (name: "This is a very very very very very very very very very very very very very very very very very very long name.docx") the previewer fails. Please refer to the attached logfile, containing the errors.

On the Windows server, we've spotted a very long path to the generated pdf file from the previewer (for example: "D:\ALFRES~3\tomcat\temp\Alfresco\THISIS~1.DOC\This is a very very very very very very very very very very very very very very very very very very long name.docx-OpenOfficeContentTransformer-target-4579919968688505989.pdf"). This pdf file is 0kb in size, which is incorrect.

We believe that the pdf document can't be generated successfully, because of the MAX_PATH length value in Windows (which has a static value of 260).

Does anybody have a solution for this problem, except for migrating to Linux which is not an option for this customer?

Attachments

Outcomes