iotdb
iotdb copied to clipboard
org.apache.commons.io.FileSystem.isLegalFileName(CharSequence candidate) method is unreasonable
Search before asking
- [X] I searched in the issues and found nothing similar.
Motivation
FileSystem.isLegalFileName(CharSequence candidate) method, there is a verification logic : candidate.length() > maxFileNameLength. maxFileNameLength is string length. but when file name bytes exceed 255 will cause system errors. java.io.FileNotFoundException : File name too long.
Solution
maxFileNameLength verify file name bytes length
Alternatives
no
Are you willing to submit a PR?
- [X] I'm willing to submit a PR!
Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!