Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.0/Cloud)

87709: Merged V4.2-BUG-FIX (4.2.4) to HEAD-BUG-FIX (5.0/Cloud)
      87659: MNT-12196 : Exception generated in “AccessAuditor” when length of custom property string in Javascript is bigger than 1024 in Postgres database
         - Fixed build failure


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@94548 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2015-01-31 09:48:37 +00:00
parent 510abf138f
commit 2222eee2e9

View File

@@ -544,7 +544,14 @@ public class AuditComponentImpl implements AuditComponent
if (!trimmed.equals(auditValue))
{
strings.add(trimmed);
iterator.remove();
try
{
iterator.remove();
}
catch (UnsupportedOperationException e)
{
// nothing to do in the case of unmodifiable collection
}
}
}
else if (auditValue instanceof MLText)