Error when Downloading assets in AEM 6.5.2 | Community
Skip to main content
July 7, 2022
Solved

Error when Downloading assets in AEM 6.5.2

  • July 7, 2022
  • 3 replies
  • 1851 views

When trying to download any type of file from AEM, a ZIP file is generated but with no content at all.

This happens if I try to download 1 single file, or multiple files at the same time.

Do you know what could be the problem?

 

Thanks in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Aditya_Chabuku

Hi @bragad , You should be able to download any asset from AEM. If not, then please do these steps.

  1. Go to error.log & access.log files of that AEM instance & see what logs are printing there.
  2. Try to check your read permissions on that particular location. e.g: /content/dam/wknd/en/site

I tried to do it on wknd asset with just read permissions & its working good for me.

 

 

~Aditya.Ch

 

3 replies

Jagadeesh_Prakash
Community Advisor
Community Advisor
July 7, 2022

@bragad 

 

Can you check on below points

1. Check logs for any errors

2. The download service creates a zip under /var/dam/donwloads. Check if the package is available at that location

3. Check if you have necessary permissions to download the assets

4. Are you doing this from author or publisher

Aditya_Chabuku
Community Advisor
Aditya_ChabukuCommunity AdvisorAccepted solution
Community Advisor
July 7, 2022

Hi @bragad , You should be able to download any asset from AEM. If not, then please do these steps.

  1. Go to error.log & access.log files of that AEM instance & see what logs are printing there.
  2. Try to check your read permissions on that particular location. e.g: /content/dam/wknd/en/site

I tried to do it on wknd asset with just read permissions & its working good for me.

 

 

~Aditya.Ch

 

Thanks,Aditya Chabuku
SantoshSai
Community Advisor
Community Advisor
July 7, 2022

Hi @bragad ,

There can be few reasons, my suspects,

  • If you are downloading from CDN/Dispatcher then it should be a rule issue either in Dispatcher or CDN which is causing this.
  • Check if AssetDownloadService reference is not in satisfied state in AssetDownloadServlet . AssetDownloadService is dependent on other OOTB services and they should be in satisfied state. 
  • You can also check AEM error.log, request.log for this timeframe. As I said above, this download functionality leverages AEM Assets AssetDownloadServlet servlet. To ensure this servlet is available, the following request path must be open (ie. not blocked via AEM Dispatcher filters).
    HTTP POST /content/dam.assetdownload.zip/<ZIP File Name>.zip?licenseCheck=true&flatStructure=true&downloadSubassets=<true|false>&downloadRenditions=<true|false>

There is nothing to do with permissions, read permission is enough to download asset - If user doesn't have read permission - he/she can't even see the asset itself.

Hope that helps!

Regards,

Santosh

Santosh Sai