Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

64703: Fix ACE-987: NPE in NodeEntity during post-commit write through to shared cache
    - Query selecting specific root nodes was not fully populating the stored entity
    - The failure itself mainly occurs when a check is made to prevent duplication of cache transfers
      (the cached value is the same); once the cache has an entry, the error would not have
      occurred again.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@66181 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-04-02 19:45:56 +00:00
parent e069af2971
commit b1c279bdaf
4 changed files with 50 additions and 17 deletions

View File

@@ -34,7 +34,7 @@ import org.alfresco.util.Pair;
* @author Derek Hulley
* @since 3.4
*/
public class NodeEntity implements Node, PermissionCheckValue, Serializable
public class NodeEntity implements Node, PermissionCheckValue, Serializable, Cloneable
{
private static final long serialVersionUID = 1L;
private boolean locked;
@@ -84,7 +84,13 @@ public class NodeEntity implements Node, PermissionCheckValue, Serializable
this.transaction = node.getTransaction();
this.auditableProperties = node.getAuditableProperties();
}
@Override
public Object clone() throws CloneNotSupportedException
{
return super.clone();
}
@Override
public int hashCode()
{