adobe / asset-share-commons

A modern, open-source asset share reference implementation built on Adobe Experience Manager (AEM)
https://opensource.adobe.com/asset-share-commons/
Apache License 2.0
89 stars 106 forks source link

Assets thumbnails not loading on Publish #442

Closed mozzvinod closed 4 years ago

mozzvinod commented 4 years ago

Hi All,

I am facing this weird issue of images not loading on the publish server, while its working good on Author. I have configured below on the publish dispatcher with n success at present:

image

Could you please help and highlight the missing part if any.

godanny86 commented 4 years ago

hi @mozzvinod can you set the dispatcher level to debug? When you monitor the logs do you see the dispatcher rejecting the image requests?

At a minimum you will need to open up the /content path and allow some of the mimetype extensions:

/0023 { /type "allow" /url "/content*" }
/0041
   {
        /type "allow"
        /extension '(clientlibs|css|gif|ico|js|png|swf|jpe?g|woff2?|mp4|mpv|avi)'
    }
bstopp commented 4 years ago

If you're running Dispatcher 4.2+ you can use trace level logging to identify exactly which rule is being applied to the denied request.

mozzvinod commented 4 years ago

Thanks the issue was around thumbnails and was resolved by allowing path url from "content/dam/projectname". Thanks once again for the help.

davidjgonzalez commented 4 years ago

@mozzvinod

What version of ASC?

Can you access them directly via AEM Publish? And/or does this only break when accessing ASC via Dispatcher?

A simple check would be to, using the same login session, used for the ASC site, make a direct request to the asset under /content/dam/projectname via AEM Publish hostname, and then via Dispatcher hostname. If you cannot access the asset direct via AEM Publish, you have an issue in AEM (likely ACLs or Asset rendition doesn't exist?). If it works when accessing direct to AEM Publish but NOT via AEM Dispatcher, then you have a Dispatcher config issue, likely an issue with your allow/deny filters.

mozzvinod commented 4 years ago

Hi David, Version of ASC is 1.8.0.

The issue is cropping up on publish only now. Renditions exist (all works good on author) but still not loading. I am accessing publish using admin user. What ACL right I need to take care of here.

Regards, Vinod

davidjgonzalez commented 4 years ago

@mozzvinod does it work if you access AEM Publish direct (on port 4503) or only when you access via Dispatcher?

davidjgonzalez commented 4 years ago

@mozzvinod closing this due to inactivity. If you are still seeing this issue please re-open with the information requested in the above comments.