SVN and MVN please.
Jiras to be included in hotfix:
MNT-15757, MNT-15760, MNT-15746, MNT-15662, MNT-15823
There appears to be an inconsistency with the way zero-byte files are treated between using REST and FTP. In FTP the file is uploaded and a cm:content property is set, this means that although it points to a zero-byte binary, mime-type is retained. However when uploading via REST, cm:content is not set at all.
[Steps to reproduce]
1) Upload a zero byte file by FTP to Alfresco repo
2) Check the cm:content property using Node Browser: you will see the value being set
3) Upload a zero byte file using curl
Example curl command
4) Check the cm:content property using Node Browser: you will not see a cm:content property being set
We should either show the cm:content or not in both the cases.
Inconsistent behavior observed as described above.
When uploading the zero-byte file via FTP, the cm:content property is created as follows: