Details
-
Bug
-
Status: Reopened
-
Major
-
Resolution: Unresolved
-
2.7, 2.8.0, 2.9.0, 2.10.0, 2.11.0
-
None
-
None
-
Run the below line of code in windows environment.
String fileName = FilenameUtils.getExtension("Top of Information Store\\Archive
Informational-severity alert: eDiscovery search started or exported.msg");
System.out.println(fileName);We are getting the error,
Exception in thread "main" java.lang.IllegalArgumentException: NTFS ADS separator (':') in file name is forbidden.
at org.apache.commons.io.FilenameUtils.indexOfExtension(FilenameUtils.java:737)
at org.apache.commons.io.FilenameUtils.getExtension(FilenameUtils.java:1057)Run the below line of code in windows environment. String fileName = FilenameUtils.getExtension("Top of Information Store\\Archive Informational-severity alert: eDiscovery search started or exported.msg"); System.out.println(fileName); We are getting the error, Exception in thread "main" java.lang.IllegalArgumentException: NTFS ADS separator (':') in file name is forbidden. at org.apache.commons.io.FilenameUtils.indexOfExtension(FilenameUtils.java:737) at org.apache.commons.io.FilenameUtils.getExtension(FilenameUtils.java:1057)
-
Important
Description
Hi Team,
I am using FilenameUtils.getExtension method to get the file extension from the file path ( Available as string). Due to one of the bug fix happen after 2.7 breaks the code.
Run the below line of code in windows environment.
String fileName = FilenameUtils.getExtension("Top of Information Store
Archive
Informational-severity alert: eDiscovery search started or exported.msg");
System.out.println(fileName);
We are getting the error,
Exception in thread "main" java.lang.IllegalArgumentException: NTFS ADS separator (':') in file name is forbidden.
at org.apache.commons.io.FilenameUtils.indexOfExtension(FilenameUtils.java:737)
at org.apache.commons.io.FilenameUtils.getExtension(FilenameUtils.java:1057)
Attachments
Issue Links
- links to