cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco on Windows: maximum path length patch

angelborroy
Community Manager Community Manager
Community Manager
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.
Hyland Developer Evangelist
2 REPLIES 2

resplin
Elite Collaborator
Elite Collaborator
I didn't see this reported in the issue tracker, so I went ahead and did that.

https://issues.alfresco.com/jira/browse/ALF-21479

We need to evaluate this for side-effects to see if we can include it.

Thanks Angel for all your contributions!

angelborroy
Community Manager Community Manager
Community Manager
It's a pleasure.

I thought that is was a really minor problem with very few impact: it's only for Windows based servers and for very long filenames. That's why I've not raised an issue. I'll do that next time.

Thanks
Hyland Developer Evangelist