APPS-361: [AGS/S3]Moving records between buckets in S3 (also possible moving records between stores-filecontenstore) fails

- Fixed issue and added unit tests
This commit is contained in:
Raluca Munteanu
2020-09-28 13:12:35 +03:00
parent 722d911af1
commit 1331ed7ba3
2 changed files with 35 additions and 3 deletions

View File

@@ -415,7 +415,7 @@ public class RecordAspect extends AbstractDisposableItem
@Behaviour
(
kind = BehaviourKind.CLASS,
notificationFrequency = NotificationFrequency.EVERY_EVENT
notificationFrequency = NotificationFrequency.FIRST_EVENT
)
public void onUpdateProperties(NodeRef nodeRef, Map<QName, Serializable> before, Map<QName, Serializable> after)
{
@@ -425,7 +425,7 @@ public class RecordAspect extends AbstractDisposableItem
ContentData contentAfter = (ContentData) after.get(ContentModel.PROP_CONTENT);
// Check only storeNameAfter since the store name is updated before this method is triggered
// Does not allow content setting content to null when moving content between stores (case not covered by
// Does not allow setting content to null when moving content between stores (case not covered by
// ContentPropertyRestrictionInterceptor)
if (storeNameAfter != null && contentAfter != null)
{