-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client Versioning is Not working in AEM 6.5.8 #2577
Comments
I have nagging doubts it has to do to #2533 With this PR the code resolves client libs before trying to get it with HtmlLibraryManager and it does not seem to work with proxied paths (/etc.clientlibs) The culprit is VersionedClientlibsTransformerFactory#resolvePath private String resolvePath(LibraryType libraryType, String libraryPath, SlingHttpServletRequest request) {
Resource libraryResource = request.getResourceResolver().resolve(request, libraryPath);
if (libraryResource != null && !(libraryResource instanceof NonExistingResource)) {
return libraryResource.getPath();
}
return resolvePathIfProxied(libraryType, libraryPath, request.getResourceResolver());
} If libraryPath is proxied., e.g. I guess the resolve logic should not apply to proxied paths: private String resolvePath(LibraryType libraryType, String libraryPath, SlingHttpServletRequest request) {
if (!libraryPath.startsWith(PROXY_PREFIX)) { // don't try to resolve proxies paths, e.g. /etc.clientlibs/my-app/clientlibs/clientlib-base
Resource libraryResource = request.getResourceResolver().resolve(request, libraryPath);
if (libraryResource != null && !(libraryResource instanceof NonExistingResource)) {
return libraryResource.getPath();
}
}
return resolvePathIfProxied(libraryType, libraryPath, request.getResourceResolver());
} |
This is fixed by #2581 |
Hi Kwin, Can you please share the acs commons 5.0.4 link, which has this fix. Thanks, |
This is fixed in the upcoming 5.0.6 (always check the milestone on closed issues) |
Hi Kwin, Can you please let us know, where can I see the milestone for the version 5.0.6. It works on Some AEM instances. Is there any recommendation to make it workable with acs 5.0.4 version? Thanks, |
This is regarding issues reported by @irenebijo .For us also we are using AMS where in non prod environment below ACS commons package is deployed. Current non prod version where we are testing the changes- aem-service-pkg-6.5.8.zip Existing prod package-
For us we have tested 60 different applications pages,JS and css which comes under one org group.We haven't seen this issue in non prod environment.Do you think I should go ahead and push the change to production. I also saw your note that issue is fixed with 5.0.6.Not sure if we need to stick on 5.0.4 or wait for 5.0.6. Please advise. |
Required Information
Expected Behavior
ClientLibs versioning should work in AEM 6.5.8
Actual Behavior
ClientLibs versioning is not working in AEM 6.5.8
### Steps to Reproduce
vslingfloderclientlib.zip
Note: Clientlib versioning is working fine with AEM service pack 6.5.5 but when we upgrade service pack to 6.5.8 it is not working as expected. Only css file is getting versioned but not the js files. we tried with acs-common-5.0.4 and aem service pack 6.5.8 but with acs common 5.0.4 both the css and js file is not getting versionized.
Links
http://localhost:4505/etc.clientlibs/weretail/clientlibs/clientlib-base.css
http://localhost:4505/etc.clientlibs/weretail/clientlibs/clientlib-base.js
The text was updated successfully, but these errors were encountered: