REPO-4284: MNT-20212: Download as Zip temp content never gets cleaned (#190)

(cherry picked from commit 499c0c3b02)

Merging from master (ACS 6.2) to equivalent ACS 6.1
This commit is contained in:
Andrei Rebegea
2019-04-08 11:55:57 +03:00
committed by Andrei Rebegea
parent c1a2780360
commit 115bf9b8a6

View File

@@ -61,6 +61,7 @@ import org.alfresco.rest.api.tests.util.RestApiUtil;
import org.alfresco.rest.framework.core.exceptions.ApiException;
import org.alfresco.service.cmr.download.DownloadStatus;
import org.alfresco.service.cmr.site.SiteVisibility;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.json.simple.JSONObject;
@@ -369,7 +370,12 @@ public class TestDownloads extends AbstractBaseApiTest
deleteNode(download.getId(), true, HttpServletResponse.SC_FORBIDDEN);
setRequestContext(user1);
assertDoneDownload(download, 1, 13);
// user2 should not be able to read information about downloads started by other users
setRequestContext(user2);
getDownload(download.getId(), HttpServletResponse.SC_FORBIDDEN);
}
protected ZipInputStream getZipStreamFromResponse(HttpResponse response)