Uploaded image for project: 'Magnolia DAM Module'
  1. Magnolia DAM Module
  2. MGNLDAM-847

damfn.getAsset is not working with files uploaded in ZIPs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 3.0.2
    • None
    • None
    • None

      Steps to reproduce

      • Upload assets as ZIP-archive
      • Use
         {{[#assign asset = damfn.getAsset(content.imageLink)!]
      • Add image to component

      Expected results

      • Asset loads normally on the templates

      Actual results

      • Image does not load on page editor, nor can it be reached individually

      Workaround

      • no workaround

      Development notes

      • Does not work with sanitized (no whitespaces) filenames either (MGNLDAM-843)
      • This does not work (getAsset):
        [#assign asset = damfn.getAsset(content.imageLink)!]
      • This does work (getRendition, it is used in travel):
        [#assign asset = damfn.getRendition(content.imageLink, "original")!]
      • So somehow what damfn.getAsset returns is not working with zipped files.
      • getAsset works well for assets that were uploaded directly (not through zip-files)
      • Probably related to extension being added at the end when uploading from zip

        Acceptance criteria

              asiska Adam Siska
              bstaryga Bartosz Staryga
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Time Spent - 4m Remaining Estimate - 1h
                    1h
                    Logged:
                    Time Spent - 4m Remaining Estimate - 1h
                    4m