Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Enable/Disable Rebuild Client Libraries Option

Avatar

Community Advisor

Hello Community members,

In AEM there is a option for clientlibs: http://localhost:4502/libs/granite/ui/content/dumplibs.rebuild.html 

Where we can rebuild/invalidate the cache of clientlibs.

 

By default, it's always enabled. Now my query-> is there any option where I can enable or disable this option? I prefer an OSGI Config option that makes it enable or disable (OOTB).

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi @Sady_Rifat ,

 

AFAIK, you cannot control this through OSGi configuration, since the logic is through JSP and some interdependent services.

 

One way could be by overlaying /libs/granite/ui/components/dumplibs, but I won't recommend it because it's granite:InternalArea.

 

Another way would be to enable/disable the path "/libs/granite/ui/components/dumplibs" using the ACL, so that specific folks can access this path, and you can enable and disable it for them.

 

Hope that helps!

 

Regards,

Nitesh

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

Hi @Sady_Rifat ,

 

AFAIK, you cannot control this through OSGi configuration, since the logic is through JSP and some interdependent services.

 

One way could be by overlaying /libs/granite/ui/components/dumplibs, but I won't recommend it because it's granite:InternalArea.

 

Another way would be to enable/disable the path "/libs/granite/ui/components/dumplibs" using the ACL, so that specific folks can access this path, and you can enable and disable it for them.

 

Hope that helps!

 

Regards,

Nitesh

Avatar

Level 4

One or two years ago I experienced the situation when the rebuilding client libraries broke the authoring interface so we had to take some activities to fix it. However, usually issues like that should not happen, so if you rebuild all libraries and something broke, let Adobe know if you have problems when you click that rebuild button.

This mechanism should exist as there's no other way to rebuild a library when you "repo put" some content to that library, I don't remember which - JS/CSS files or the clientlib configuration (updated js.txt, css.txt or .content.xml file) - updating some of those ones doesn't update the resulting client library file. 

If you want to disable it on your environments' author for usual users, just set up the dispatcher access for the author instance and forbid it on the dispatcher. Allow direct access to that server (without dispatcher) only for developer IP addresses (we use VPN to achieve this).

Another way, for both remote and local AEMs, you can try to setup ACL in useradmin to disable the whole path /libs/granite/ui/content/dumplibs, but I am not sure it will help you

Also, you can try to write Sling Servlet Filter for that path (a service that implements javax.servlet.Filter, you can find samples in ACS Commons code or in WCM Core Components code), where you won't pass the processing to another filter in the chain or return another response.