Cannot access clientlib under custom "apps/granite/core/content/login" after deployment | Community
Skip to main content
Level 3
January 13, 2023
Solved

Cannot access clientlib under custom "apps/granite/core/content/login" after deployment

  • January 13, 2023
  • 3 replies
  • 1035 views

Dear community,

I was trying to deploy the custom login page but the page only load login.jsp without the clientlib.

 

I've checked that:

1. Clientlib "categories" property was modified

2. Paths were modified in "apps/granite/core/components/login/login.jsp"

3.  Requirement was added in Apache Sling Authentication Service

As I manually added the core folder (originally from libs/granite) under "apps/granite" and did the settings above, "apps/granite/core/content/login" folder was successfully accessed. 

However, as I packed this "apps/granite/core" node and deployed it again, the folder went missing.

 

Would like to know if I should also pack some other nodes with "apps/granite/core", or what should I do to make this work?

Thanks!

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 Manu_Mathew_

@yusheng You are proabably missing allowproxy property- 

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

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.

3 replies

Sady_Rifat
Community Advisor
Community Advisor
January 13, 2023

Have you tried using 

allowProxy="{Boolean}true"

 

Manu_Mathew_
Community Advisor
Manu_Mathew_Community AdvisorAccepted solution
Community Advisor
January 13, 2023

@yusheng You are proabably missing allowproxy property- 

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

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.

YuShengAuthor
Level 3
January 13, 2023

Hi @sady_rifat and @manu_mathew_ 

 

I tried adding the allowProxy true property and clientlib was accessed:

 

You both offered the right solution and Manu's explanation is more detailed so I marked it accecpted.

Thank both of you for the help!