This commit is contained in:
Francesco 2023-09-25 17:15:08 +02:00
parent d5371b307d
commit ca657340c0

View File

@ -193,6 +193,9 @@ public class DbAdminRepository {
files.keySet().forEach(f -> { files.keySet().forEach(f -> {
try { try {
// The file parameter gets sent even if empty, so it's needed
// to check if the file has actual content, to avoid storing an empty file
if (files.get(f).getSize() > 0)
allValues.put(f, files.get(f).getBytes()); allValues.put(f, files.get(f).getBytes());
} catch (IOException e) { } catch (IOException e) {
throw new DbAdminException(e); throw new DbAdminException(e);