How to reproduce:
- Create a custom aspect that has a new property of type d:content
- Create a folder and upload a PDF document there
- Download the folder as a ZIP to your local computer and uncompress it
- Open the uncompressed PDF file
The PDF file should open with the same content as the uploaded file
The opening of the PDF file fails because what was written to the PDF was the last d:content property of the node instead of the actual cm:content property. (Opening the file with a text editor will show you the text of the second d:content property)
In fact, I guess that the ZIP has 2 entries with the same name and probably the last one is winning.
I attach a patch.