Profile Card component | Community
Skip to main content
August 3, 2023
Solved

Profile Card component

  • August 3, 2023
  • 2 replies
  • 1318 views

Images on the Profile Card component are not loading due to client lib issue on AEM-STAGE and AEM-PROD.

So, please help regarding this issue.

Also, please help me out with your suggestions.

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 AsifChowdhury

Hi @shreyas_tm 

Add allowProxy="{Boolean}true"  in your component's clientlib. And clear the cache to make sure the previous clientlib is not cached.

Why:

In order for the client libraries under /apps to be accessible, a proxy servelt is used. The ACLs are still enforced on the client library folder, but the servlet allows for the content to be read via /etc.clientlibs/ if the allowProxy property is set to true.

In order for the client libraries to be accessible via proxy under /etc.clientlibs, select the cq:ClientLibraryFolder node, add the following property, and then click Save All:

  • Name: allowProxy
  • Type: Boolean
  • Value: true

allowProxy: If a client library is located under /apps, this property allows acces to it via proxy servlet.

2 replies

AsifChowdhury
Community Advisor
AsifChowdhuryCommunity AdvisorAccepted solution
Community Advisor
August 3, 2023

Hi @shreyas_tm 

Add allowProxy="{Boolean}true"  in your component's clientlib. And clear the cache to make sure the previous clientlib is not cached.

Why:

In order for the client libraries under /apps to be accessible, a proxy servelt is used. The ACLs are still enforced on the client library folder, but the servlet allows for the content to be read via /etc.clientlibs/ if the allowProxy property is set to true.

In order for the client libraries to be accessible via proxy under /etc.clientlibs, select the cq:ClientLibraryFolder node, add the following property, and then click Save All:

  • Name: allowProxy
  • Type: Boolean
  • Value: true

allowProxy: If a client library is located under /apps, this property allows acces to it via proxy servlet.

SivakumarKanoori
Community Advisor
Community Advisor
August 4, 2023

@shreyas_tm : Is it loading fine in the AEM  author preview mode ? 

Thanks,Siva
August 4, 2023

In author mode it is loading fine, but when we view it as published , the image is not loading.

Thanks!

SivakumarKanoori
Community Advisor
Community Advisor
August 10, 2023

The thing is, we didn't get any errors regarding it. Instead we were not able to load components on published pages. So, we thought it might be due to client lib issue and just split the components.

 

Thanks!


@shreyas_tm  : 

When you view as published , Can you check view source and check the image path , is it pointing to correct dam path or shortening the image path ?

 

Thanks 

Siva

Thanks,Siva