Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-883

Import and export zip packages of content where binaries not embedded as base64 encoded character data inside the xml but as separate files



    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.26.00
    • None
    • Sprint 70, Sprint 71


      When you export content including big binaries (image or asset) in CMS
      Console, you could meet OutOfMemoryError because the exporting process
      tries to convert the binary data into BASE64 encoded string in memory.

      The current way cannot avoid this risk without changing the way of
      binary inclusion in XML.

      So, I tried to figure out what kind of improvements we can make in this
      area to avoid this risk in the future.
      My idea is to have a hippo specific property which contains the link
      of the binary file instead of having to convert binary data into base64
      all the time.

      For example, an asset could possibly be written like the following:

      <sv:node sv:name="hippogallery:asset">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:property sv:name="hippo:text" sv:type="Binary">
      <sv:property sv:name="hippo:import" sv:type="String">

      <sv:property sv:name="jcr:data" sv:type="Binary">
      <sv:property sv:name="jcr:lastModified" sv:type="Date">
      <sv:property sv:name="jcr:mimeType" sv:type="String">

      My idea is to introduce 'hippo:import' (string) property which just
      contains the (context relative) link to the physical binary file.
      So, when importing, if it reads the property, then it just reads the
      data from the file when importing with ignoring the 'jcr:data'.

      The CMS Console UI should somehow handle this. e.g, downloading xml + binary files in ZIP file format and handle the uploaded tar file maybe.


        Issue Links



              jsheriff Junaidh Kadhar Sheriff
              wko Woonsan Ko (Inactive)
              0 Vote for this issue
              4 Start watching this issue