[ALF-22009] Download as ZIP download wrong content if there are multiple d:content properties Created: 02-Jul-18 Updated: 09-Nov-18
|Security Level:||external (External user)|
|Reporter:||Igor Blanco||Assignee:||Igor Blanco|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Date of First Response:|
How to reproduce:
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.
|Comment by Derek Hulley [X] (Inactive) [ 03-Jul-18 ]|
Thank you for reporting this and the patch.
|Comment by Indy Sandhu [ 03-Oct-18 ]|
Igor Blanco just touching base to see if you intended to create the pull request for this issue or not? Thank you.
|Comment by Igor Blanco [ 09-Nov-18 ]|
Hi Indy Sandhu,
I gave it a try but I've no prior experience with developing tests for Alfresco and after some hours trying to grasp how to develope a test for this I ran out of time.
So in short, no, I won't make a pull request, not at least shortly.
|Comment by Derek Hulley [X] (Inactive) [ 09-Nov-18 ]|
A PR for the fix itself would be a good start. We can review and write the test.