mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
MNT-15449 "EagerContentStoreCleaner job not working correctly using Cryptodoc contentstore encryption" handle missing content url key in CryptoContentStore by returning EmptyContentReader, which fixes the issue seen by the customer but means that the DeletedContentBackupCleanerListener will not work with the CryptoContentStore. Also, remove override of testDeleteReaderStates test (this should be handled by the test superclass)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129409 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -451,14 +451,17 @@ public abstract class AbstractWritableContentStoreTest extends AbstractReadOnlyC
|
||||
writer.getContentUrl(), reader.getContentUrl());
|
||||
|
||||
// open the stream onto the content
|
||||
InputStream is = reader.getContentInputStream();
|
||||
InputStream is = reader.exists() ? reader.getContentInputStream() : null;
|
||||
|
||||
// attempt to delete the content
|
||||
boolean deleted = store.delete(contentUrl);
|
||||
|
||||
// close the reader stream
|
||||
is.close();
|
||||
|
||||
// close the reader stream
|
||||
if(is != null)
|
||||
{
|
||||
is.close();
|
||||
}
|
||||
|
||||
// get a fresh reader
|
||||
reader = store.getReader(contentUrl);
|
||||
assertNotNull(reader);
|
||||
|
Reference in New Issue
Block a user