Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-22009

Download as ZIP download wrong content if there are multiple d:content properties

    Details

    • Type: Bug
    • Status: Need Info (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.2
    • Fix Version/s: None
    • Component/s: Repository
    • Security Level: external (External user)
    • Labels:
    • Triage:
      To Do

      Description

      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
      • Add the newly created aspect to the document and set the new d:content property to it (for example by adding some text content to it with the javascript console)
      • Download the folder as a ZIP to your local computer and uncompress it
      • Open the uncompressed PDF file

      Expected result:

      The PDF file should open with the same content as the uploaded file

      Actual result:

      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.

       

        Attachments

          Structure

            Activity

              People

              • Assignee:
                iblanco Igor Blanco
                Reporter:
                iblanco Igor Blanco
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Date of First Response:

                  Structure Helper Panel