Clientlibs UI Extensions | Incompatible with ACS Versioned Clientlibs

Description

Clientlibs UI Extensions currently breaks the support of ACS versioned clientlibs

Activity

Show:

Chris W. Burke May 14, 2020 at 3:19 PM

Super helpful. Thanks, Stefan!!

Stefan Seifert May 12, 2020 at 4:07 PM

btw, this "longCacheKey" feature is very poorly documented, i've found some public available references to it in
https://medium.com/@soluml/front-end-adventures-in-aem-part-i-fdf4a7ffb2c5
http://www.aemstuff.com/osgi/aem62.html

we are using it in our project for years, you can also use our maven archetype to setup a project which used the maven project version and current git has as a version for the clientlibs
https://wcm.io/tooling/maven/archetypes/aem/

Stefan Seifert May 12, 2020 at 4:04 PM

the "ACS AEM Commons Versioned Clientlibs" feature seems to be somewhat deprecated, they added a banner that's it no longer compatible with the latest AEM version (AEM as a Cloud Service incompatible). see also discussion here: #183.

that there is an OOTB solution in AEM available for quite a long time (since AEM 6.2?) by either specifying a "longCacheKey" property in the clientlib definition (e.g. with a version number automatically set during build time), or by defining a "Long term client side cache key" centrally in the osgi configuration in the "Adobe Granite HTML Library Manager".

so i currently think it's not worth investing more time in making those two compatible (PR's welcome, though). i've not digged into the details, but afaik the versioned clientlib feature form ACS AEM commons works as rewriter on the generated HTML output, so i'm not sure why it should not work together with the output generated by Clientlibs UI Extensions; maybe it's just an issue of properly configuring the rewriter pipeline.

Chris W. Burke April 15, 2020 at 10:44 PM

The two do not work together. Ideally, it should only add attributes to the existing clientlib output.

Stefan Seifert March 24, 2020 at 1:54 PM

can you describe the problem in more detail?

is the ACS versionion clientlibs feature broken when the Clientlibs UI Extensions is only deployed to the same system, or does those two just not work together when you try to include a versioned clientlib using the "/apps/wcm-io/wcm/ui/clientlibs/sightly/templates/clientlib.html HTL script from wcm.io?

Won't Fix

Details

Assignee

Reporter

Components

Priority

Created March 23, 2020 at 12:11 AM
Updated May 14, 2020 at 3:19 PM
Resolved May 12, 2020 at 4:04 PM