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

Return ENAMETOOLONG if file names are too long #44

Closed
overheadhunter opened this issue Apr 28, 2020 · 0 comments
Closed

Return ENAMETOOLONG if file names are too long #44

overheadhunter opened this issue Apr 28, 2020 · 0 comments
Milestone

Comments

@overheadhunter
Copy link
Member

Due to cryptomator/cryptofs#77, we need to pass through "file name too long" errors thrown by the underlying file system.

Example thrown by underlying ecryptfs on Linux:

java.nio.file.FileSystemException: path/of/long/file.txt: 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:111)

Besides operations creating nodes (such as mkdir or symlink) we noticed that error code ENAMETOOLONG is also expected to be returned by getattr.

@overheadhunter overheadhunter added this to the 1.2.4 milestone Apr 28, 2020
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