1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-14 18:26:17 +00:00

Closes #208: display file content + fix filename encoding

This commit is contained in:
Benjamin Gamard
2018-03-23 16:41:02 +01:00
parent 55a4bb7621
commit be1c2a7b90
10 changed files with 53 additions and 12 deletions

View File

@@ -54,6 +54,7 @@ public class FileCreatedAsyncListener {
FormatHandler formatHandler = FormatHandlerUtil.find(file.getMimeType());
if (formatHandler == null) {
log.error("Format unhandled: " + file.getMimeType());
FileUtil.endProcessingFile(file.getId());
return;
}
@@ -65,6 +66,7 @@ public class FileCreatedAsyncListener {
});
if (user.get() == null) {
// The user has been deleted meanwhile
FileUtil.endProcessingFile(file.getId());
return;
}