mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user