When auditing properties updates it is not expected that the audited values would be truncated. The expected behaviour is to store in audit the entire property value.
How to reproduce?
1)Install a 5.1.1
2) Enable audit
3) enable the audit examples under /shared/classes/alfresco/extension/audit/ by removing the .sample
4) Modify how a field is displayed when editing meta data properies. I picked the “cm:subject” field of the “dublincore” aspect.
and set a maxlen of 65535
5) restart alfresco.
6) create a document and add dublin core aspect and fill in the subject field with:
Field value is saved and not trucated.
But audited value is trucated.
Have a look at:
Observe that the end of the field values is truncated when retrieved from the audit.
End of the field should not be truncated.
Saving the auded value in “alf_prop_serializable_value” when bigger thant 1024 will probably solve the problem. Please find attached the patch implementing that option.