Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"File name too long" Exception #42

Open
tsiakmaki opened this issue Sep 19, 2017 · 0 comments
Open

"File name too long" Exception #42

tsiakmaki opened this issue Sep 19, 2017 · 0 comments

Comments

@tsiakmaki
Copy link

We have been using parts of your code, and recently we faced the above error.

When the document name in Alfresco was very large (e.g. >255 chars) we were getting AlfrescoRuntimeException :
org.alfresco.error.AlfrescoRuntimeException .. ... "File name too long"

A fix that worked for us, was to use the nodeRef id also in the name of the temp document at:
https://github.com/ntmcminn/alfresco-pdf-toolkit/blob/6b4a14bb22652fdd07b7b05efb121102a2ed9b84/pdf-toolkit-repo/src/main/java/org/alfresco/extension/pdftoolkit/service/PDFToolkitServiceImpl.java#L1448

e.g.
File file = new File(toolkitTempDir, nodeRef.getId());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant