summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java
diff options
context:
space:
mode:
authorSimon Rettberg2016-04-25 18:32:37 +0200
committerSimon Rettberg2016-04-25 18:32:37 +0200
commitb1fe628e16cc2e62d94a9356c26b1356b48dcd1b (patch)
treed7fa758f56662d634585992e607d8c0ff675639f /dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java
parent[client] Add handling for master<->sat transfers (diff)
downloadtutor-module-b1fe628e16cc2e62d94a9356c26b1356b48dcd1b.tar.gz
tutor-module-b1fe628e16cc2e62d94a9356c26b1356b48dcd1b.tar.xz
tutor-module-b1fe628e16cc2e62d94a9356c26b1356b48dcd1b.zip
[server] Fix upload handling if image already exists
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java')
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java
index 8c00ad60..549bfaec 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java
@@ -161,7 +161,7 @@ public class FileServer implements IncomingEvent {
IncomingDataTransfer upload;
try {
upload = new IncomingDataTransfer(key, owner, image, destinationFile, fileSize, sha1Sums,
- machineDescription);
+ machineDescription, false);
} catch (FileNotFoundException e) {
LOGGER.error("Could not open destination file for writing", e);
throw new TTransferRejectedException("Destination file not writable!");