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:
Steven Glover
2016-08-10 09:47:25 +00:00
parent 55085f5479
commit bf740afd1e

View File

@@ -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);