Closed cshawaus closed 3 years ago
There is a comment in https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/2577#issuecomment-827499993 which might be helpful. @pcastelog WDYT? Can you come up with a bugfix?
Agree with @cshawaus . I think the best option here will be to check if the path starts with "/etc.clientlibs". I will provide a fix asap.
This is fixed by #2581
AEM Version: 6.5.7 ACS AEM Commons Version: 4.12.0+ Reproducible on Latest? yes
Expected Behavior
Proxied ClientLib paths should correctly output paths with a hash. This works correctly in ACS Commons v4.11.2 and below.
Actual Behavior
As a result of #2528, this behaviour has completely regressed and Versioned ClientLibs no longer generates hashes for proxied ClientLib paths.
Based on my observations, the following is preventing the
resolvePath
method from succeeding aslibraryResource
always resolves to/etc
.https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/84fcdd4bc66b020ac7c1a03134d1d7f474ce10e5/bundle/src/main/java/com/adobe/acs/commons/rewriter/impl/VersionedClientlibsTransformerFactory.java#L242-L248 https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/84fcdd4bc66b020ac7c1a03134d1d7f474ce10e5/bundle/src/main/java/com/adobe/acs/commons/rewriter/impl/VersionedClientlibsTransformerFactory.java#L282-L288
Steps to Reproduce
/apps/<project>
with an empty stylesheetallowProxy
to{Boolean}true
/system/console/status-slingrewriter
Links
https://github.com/Adobe-Consulting-Services/acs-aem-commons/pull/2533