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

Ensure any specified filename is shortened to the maximum length supported by the OS #430

Closed
ediweissmann opened this issue Mar 9, 2024 · 0 comments

Comments

@ediweissmann
Copy link
Collaborator

org.sejda.model.exception.TaskOutputVisitException: Exception dispatching the file or directory task output.
	at org.sejda.model.output.FileOrDirectoryTaskOutput.accept(FileOrDirectoryTaskOutput.java:50)
	at org.sejda.impl.sambox.component.split.AbstractPdfSplitter.split(AbstractPdfSplitter.java:119)
	at org.sejda.impl.sambox.SplitByPageNumbersTask.execute(SplitByPageNumbersTask.java:76)
	at org.sejda.impl.sambox.SplitByPageNumbersTask.execute(SplitByPageNumbersTask.java:45)
	at org.sejda.core.service.DefaultTaskExecutionService.actualExecution(DefaultTaskExecutionService.java:148)
Caused by: java.nio.file.FileSystemException: /path/to/long/filename.pdf: File name too long
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixCopyFile.copyFile(UnixCopyFile.java:246)
	at java.base/sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:603)
	at java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:257)
	at java.base/java.nio.file.Files.copy(Files.java:1305)
	at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:811)
	at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:2400)
	at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:2374)
	at org.sejda.core.support.io.OutputWriterHelper.doMoveFile(OutputWriterHelper.java:167)
	at org.sejda.core.support.io.OutputWriterHelper.moveFile(OutputWriterHelper.java:146)
	at org.sejda.core.support.io.OutputWriterHelper.moveToDirectory(OutputWriterHelper.java:116)
	at org.sejda.core.support.io.DefaultMultipleOutputWriter.dispatch(DefaultMultipleOutputWriter.java:72)
	at org.sejda.model.output.FileOrDirectoryTaskOutput.accept(FileOrDirectoryTaskOutput.java:48)
	... 20 more

ediweissmann added a commit that referenced this issue Mar 9, 2024
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