mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.0/Cloud)
87705: Merged V4.2-BUG-FIX (4.2.4) to HEAD-BUG-FIX (5.0/Cloud) 86681: 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@94544 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -529,6 +529,7 @@ public class AuditComponentImpl implements AuditComponent
|
|||||||
{
|
{
|
||||||
Collection<Object> collection = (Collection<Object>) values;
|
Collection<Object> collection = (Collection<Object>) values;
|
||||||
Iterator<Object> iterator = collection.iterator();
|
Iterator<Object> iterator = collection.iterator();
|
||||||
|
Set<String> strings = new HashSet<String>();
|
||||||
while (iterator.hasNext())
|
while (iterator.hasNext())
|
||||||
{
|
{
|
||||||
Object auditValue = iterator.next();
|
Object auditValue = iterator.next();
|
||||||
@@ -542,8 +543,8 @@ public class AuditComponentImpl implements AuditComponent
|
|||||||
String trimmed = SchemaBootstrap.trimStringForTextFields((String) auditValue);
|
String trimmed = SchemaBootstrap.trimStringForTextFields((String) auditValue);
|
||||||
if (!trimmed.equals(auditValue))
|
if (!trimmed.equals(auditValue))
|
||||||
{
|
{
|
||||||
collection.remove(auditValue);
|
strings.add(trimmed);
|
||||||
collection.add(trimmed);
|
iterator.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (auditValue instanceof MLText)
|
else if (auditValue instanceof MLText)
|
||||||
@@ -560,6 +561,7 @@ public class AuditComponentImpl implements AuditComponent
|
|||||||
trimStringsIfNecessary(auditValue);
|
trimStringsIfNecessary(auditValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
collection.addAll(strings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user