diff options
author | Simon Rettberg | 2016-04-25 18:32:37 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-04-25 18:32:37 +0200 |
commit | b1fe628e16cc2e62d94a9356c26b1356b48dcd1b (patch) | |
tree | d7fa758f56662d634585992e607d8c0ff675639f /dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/fileserv/FileServer.java | |
parent | [client] Add handling for master<->sat transfers (diff) | |
download | tutor-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.java | 2 |
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!"); |