mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
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:
committed by
Andrei Rebegea
parent
c1a2780360
commit
115bf9b8a6
@@ -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)
|
||||
|
Reference in New Issue
Block a user