AnsweredAssumed Answered

Alfresco on Windows: maximum path length patch

Question asked by angelborroy Moderator on Sep 24, 2015
Latest reply on Nov 11, 2015 by angelborroy
Alfresco Tomcat temporal files are named by using hardcoded prefixes in the source code. As Windows has a 256 characters available for paths, this limit can be reached easily when using LibreOffice transformations.


C:\Alfresco\apache-tomcat\temp\Alfresco\LargeFilenameToIncludeOnTransformation.docx-OpenOfficeContentTransformer-OpenOfficeContentTransformer-1442998872585\LargeFilenameToIncludeOnTransformation.docx-OpenOfficeContentTransformer-target-5667410859729336016.pdf


We've published a tiny path in order to shorten this path by decreasing temp file prefixes length. After applying this patch, final path should be as follows:


C:\Alfresco\apache-tomcat\temp\Alfresco\LargeFilenameToIncludeOnTransformation.docx-OOCT-OOCT-1442998872585\LargeFilenameToIncludeOnTransformation.docx-OOCT-target-5667410859729336016.pdf


So you have more characters available for user filenames.

It can be downloaded at https://github.com/keensoft/oo-temp-filename-shortener and it's LGPL licensed.

Outcomes