diff --git a/CHANGELOG.md b/CHANGELOG.md index 83f1c3ffc682b71e1e67d74e713f1997dfb255d7..9d20d9fdd03b82bdc900f903621ad75efa035aff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -* [caosdb-server#145](https://gitlab.com/caosdb/caosdb-server/-/issues/145) Searching for large numbers results in wrong results if integer values are +* [caosdb-server#148](https://gitlab.com/caosdb/caosdb-server/-/issues/148) + Cannot delete file entities containing unescaped space characters +* [caosdb-server#145](https://gitlab.com/caosdb/caosdb-server/-/issues/145) + Searching for large numbers results in wrong results if integer values are used. ### Security diff --git a/src/main/java/org/caosdb/server/utils/FileUtils.java b/src/main/java/org/caosdb/server/utils/FileUtils.java index 70ba003018e3ccc7831bf9f536e827552445ec6a..eb4270f8d33abf933dbe24001bfa9b02ce45639b 100644 --- a/src/main/java/org/caosdb/server/utils/FileUtils.java +++ b/src/main/java/org/caosdb/server/utils/FileUtils.java @@ -525,7 +525,7 @@ public class FileUtils { } private static void callPosixUnlink(File file) throws IOException, InterruptedException { - final Process cmd = Runtime.getRuntime().exec("unlink " + file.getAbsolutePath()); + final Process cmd = Runtime.getRuntime().exec(new String[] {"unlink", file.getAbsolutePath()}); if (cmd.waitFor() != 0) { throw new CaosDBException("could not unlink " + file.getAbsolutePath()); }