Commit 6ec985db authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Busy flag has always to be set to true during an upload

parent c9615da5
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -124,9 +124,7 @@ public class PutFileController extends FileController {
        }

        try {
            if (jobId != null) {
            fileDAO.setBusy(fileInfo.getNodeId(), true);
            }
            Files.copy(is, file.toPath());

            if (fileInfo.getContentType() == null) {
@@ -151,11 +149,9 @@ public class PutFileController extends FileController {
            }
            throw ex;
        } finally {
            if (jobId != null) {
            fileDAO.setBusy(fileInfo.getNodeId(), false);
        }
    }
    }

    /**
     * Handles duplicate file uploads generating a new non existent path. This