Rare but possible. Does not affect Windows.
On a linux OS, you can have a file with backslash in the filename. e.g. file\with\backslash.txt. If such file is present in the DROID export, the FILE_NAME column reports the name from the last backslash only (e.g. in above case backslash.txt). The full path is correct.
This bug is caused because we use FilenameUtils of apache-commons to get the file name, however comments on https://issues.apache.org/jira/browse/IO-890 indicate that the behaviour is intended, so we may need to fix this bug in DROID by not using the FilenameUtils for getting the file name.
|
return FilenameUtils.getName(name); |
Rare but possible. Does not affect Windows.
On a linux OS, you can have a file with backslash in the filename. e.g.
file\with\backslash.txt. If such file is present in the DROID export, the FILE_NAME column reports the name from the last backslash only (e.g. in above casebackslash.txt). The full path is correct.This bug is caused because we use FilenameUtils of apache-commons to get the file name, however comments on https://issues.apache.org/jira/browse/IO-890 indicate that the behaviour is intended, so we may need to fix this bug in DROID by not using the FilenameUtils for getting the file name.
droid/droid-results/src/main/java/uk/gov/nationalarchives/droid/profile/datawriter/FormattedDataWriter.java
Line 89 in d7816f9